Author: [EVO] Dan
Author Website:

Requirements: No addons required

Version: 1.0

Short description: This is a vehicle respwn script.
Date: 2013-05-07 11:16
Submitted by: Foxhound


Comments: (6)
Rating:



 

Basic Vehicle Respawn script [ALPHA]

by
[EVO] Dan


Description:
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.


Usage:
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.


Notes:
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:
- BIS
- 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.


Forum topic:
- BI forums




Download from FTP #1:
Basic Vehicle Respawn script [ALPHA]
Download from FTP #2:
Basic Vehicle Respawn script [ALPHA]
Download from FTP #3:
Size : 1 MB   Downloaded : 2240 times     Report broken download link



Tags: No tags