execution: [vehicle name,respawn point,respawn delay,direction] exec "MIFVR.sqs"
Vehcile name: the name of the vehicle which the script runs for (
)
Respawn point: the name of a object that is at the position where the vehicle should respawn (because not all vehicles are respawning to the point they are at when the script is executed)
respawn delay: delay from the vehicle is destroyed until they respawn
direction: direction the vehicle should face when respawned.
Reason why the other scripts are tied to the name of the vehicle is because I've made some scripts adding actions to the different choppers, like drop flares and drop ammo, and some scripts to cause fuel leaks and stuff like that...and since I'm a crappy scripter, it all gets kinda messy to script this in MP, since I gotta PV lots of things and stuff like that.
Example: player1 gets in a slick and drops some flares using the drop flare action. The script executed from the action only runs for him, so I gotta set i.e dropflare = true and then PV it. And then I got another script running in a loop checking when dropflare is true...when it is, it drops the flares, then sets dropflares to false and goes back to the loop. Now, I'm sure it would work some way or another to create new choppers and execute these scripts for the new chopper, but I don't know how, and I really don't wana start doing it.
Before I added all these scripts for the choppers, I tried making another respawn script which created a new chopper which was taken to base by AI, to make it all a bit more realistic. Problem was that the creation line could only run for server, or else I would get 1 chopper for the server + every client. And since the line only ran on server, only the server knew the choppers name, so when I executed a script for the chopper, only the server noticed the effect, so I ended up with dust script only for the server and stuff like that.
Anyway, I've tried moving the chopper to a island where the player ain't supposed to be (
) and setdamage it to 0 there, then wait 20 seconds before moving it to base. Because the vehicles usually waits about 15-40 mins before getting respawned, but they for some reason blow up. Like, v1 (jeep) gets destroyed by VC. After 15 mins it gets moved to base, then it blows up, and then it's setdamaged to 0. And I really doubt that the final explosion occurs after 15 mins