Jump to content
Sign in to follow this  
Kolmain

Dynamic City Patrols/Battles/Spawning

Recommended Posts

What about WaitUntil?

Yep sure....you can put it in a while loop. Run the script on the group.

In this example _found (local) has been changed to DudeFound (global).

while {true} do {

   _cnt = 0;

   for [{_i=0},{_i < count units _grp},{_i=_i+1}] do {
    _dude = units _grp select _i;
    if (_dude distance _grpfob >= 1500) then {_cnt = _cnt +1};
   sleep 0.01;
   };

   if (_cnt >=1) then {
    DudeFound = true;
   } else {
    DudeFound = false;
   };
   sleep 1;
};

...and then check from anywhere that DudeFound is true :-

waituntil {DudeFound};

It's up to your imagination!

Share this post


Link to post
Share on other sites

how would i use this with many diffrent cities? thats my issue

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  

×