Basic Vehicle Respawn script [ALPHA]by
Since BIS has recently removed various scripting commands from the scripting library it has broken the old respawn script for vehicles. Therefore I updated an old one that I wrote as scripting practice some time ago. The original reason I wrote this was because I wanted better script performance because I never used all the extra functionality that Tophe's script gave you.
So far it will only do the basic respawn with a timer, no init commands will be passed to the script as of yet (I will probably add that in the next few days if I can get it to work satisfactorily). They will released as 2 different scripts so you will have a choice of how much functionality you want vs performance cost.
To use this put the following code into the init of your vehicle:
0 = [this,5] execVM "vehicle_respawn.sqf"You can change the value 5 to whatever you desire as your respawn time.
Inside of the code you can change the various sleep values so as to change the looping time (for performance) and the vehicle deletion delay. Both of these commands have notes next to them telling you what they do.
Feel free to have a go and make this into a more advanced script if you like, just don't forget to credit me for the basics!
Credits & Thanks:
- The community, for giving me various scripting help for various things over the last few years, and have helped me to advance my scripting.
- [EVO] Curry, for helping teach me the proper way of coding, so that anybody could have a look at your code and know what each bit does.
- Tophe for being the original inspiration for me writing this, as I wish to be as good as him at coding one day.
- BI forums
Tags: No tags