Jump to content
Sign in to follow this  
fasterthanlight

Stagger opfor planes

Recommended Posts

I am looking to have a few enemy vehicles sitting on a runway and want them to take off at "random" times.

Is there a line of code that can go in the init that will delay them from taking off?

sleep no fuel, or something like that?

Share this post


Link to post
Share on other sites

Can't you just make a random sleep function?

Init: this execVM "timer.sqf"

Timer.sqf

_unit = this select 0;
_time = ((random 2000)+120);

sleep _time;
_unit setfuel 1;

I'm just guessing here..

That should in my mind keep it on the ground for a minimum of 2 minutes, and max 35 minutes or so.

Edited by speeder

Share this post


Link to post
Share on other sites

if planes have no fuel, pilots auto exit them, no matter if you enablesimulation false.

best way i know, is keep pilots gathered somewhere near on foot, use timers or switch triggers on hold wps to make them enter planes and then take off.

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  

×