Jump to content

Recommended Posts

You should look at how the LA mod k-9 unit is set up.

Here are the simple steps assuming you have at least some knowledge of how to get around the editor:

you would want to make pretty much a copy or something similar to the games SAR dog, and SAR dog handler.

now change around the commands for the SAR dog handler, you'd probably want to give it the ability to arrest and to use a gun.

now is the hard part, you must script some commands that allow you to have the dog attack a specific person, I'm know very little about scripting but it should probably just have the dog get close to the person, play an animation, and make the person fall down and be injured. However you could just take the script from the LA mod.

 

Now onto the vehicles. because you have the k-9 listed as a SAR dog in the editor, all you must do is make the vehicles you want have the same traits as the game's original SAR dog vehicle or the LA mod's k-9 vehicle.

Like I said, although you don't have to it would be very helpful to look at the LA mod's k-9 vehicle.

Good luck!

Link to comment
Share on other sites

to start, you would simply copy paste the police k9 officer and k9 dog prototype + model from LA mod, into your project. afterwards, directly copy the dog script from the LA mod.

now the difficult part, is copy pasting the relevant 'police dog' related lines of code from the LA mod entercar and emptycar scripts. both of those contain the logic which spawns and deletes the k9 dog whenever the unit enters and exits, and is equally important for correct functionality as the main dog script.

its a simple matter of adding prototypes to the StrCompare lines so that the code now includes the new vehicles you wanted to include. its possible to include multiple vehicles in my experience, and also have multiple k9 officer variants as well. not particularly easy to do but you'll get to it soon enough.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.



×
×
  • Create New...