Joshua Smith Posted May 30, 2016 Report Share Posted May 30, 2016 How do I make some personnel be able to be K-9 unit and some vehicles? I do not want to skin the vehicles, I just want to make them compatible for K-9 units Quote Link to comment Share on other sites More sharing options...
mr matt5432123 Posted May 30, 2016 Report Share Posted May 30, 2016 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! Quote Link to comment Share on other sites More sharing options...
itchboy Posted May 31, 2016 Report Share Posted May 31, 2016 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. Quote Link to comment Share on other sites More sharing options...