Jump to content
Sign in to follow this  
Brute

Unit spawn timer

Recommended Posts

Can anybody please tell me how to make units spawn on a timer, for example i want a tank to spawn 10:00 minutes into the game?

Share this post


Link to post
Share on other sites

sleep 600 in SQF or ~600 in SQS at the start of the script or before the createvehicle line..

Share this post


Link to post
Share on other sites

Is there any way to do it simply by the initialization field?

Share this post


Link to post
Share on other sites
Can anybody please tell me how to make units spawn on a timer, for example i want a tank to spawn 10:00 minutes into the game?

_xhandle = this spawn {_pos = getpos _this; _this setpos [0,0,0]; sleep 600; _this setpos _pos};

Replace [0,0,0] with maybe a getpos of a place where the tank won't be 'disturbed', ie an island in the middle of nowhere.

Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
Sign in to follow this  

×