PDA

View Full Version : vehical respawn



Lightninguk
Jun 9 2009, 15:34
can somebody please show me a way of having vehical respawn ,i try the Arma1 version but does not work

Tajin
Jun 9 2009, 16:04
It works the same way, just find youself an sqf-based respawnscript not one of those old sqs-scripts.

Same old logic:
Check if the vehicle is destroyed or heavily damaged and empty and not moving. Once these three conditions are met, start an timer (usually a loop with an delay). With each tick of the timer recheck the three conditions. If anything has changed, cancel the timer. Otherwise add +1 to an Variable. If the variable reaches a set maximum, delete the vehicle and spawn a new one at the base.