Page 1 of 1

Function SleepUntil(what);

Posted: Fri Mar 24, 2006 9:24 pm
by MontuZ
I wanted to try and make or see if there's a way I can Sleep/Pause a script until an action happends. something like; example.
SleepUntil( !Who.dead );
Honestly, I have NO CLUE where I'd start for something like that.

Maybe,

While( Who.dead )
Sleep( 1 );
Endwhile

I'm guessing? Haven't tested that.

Posted: Sat Mar 25, 2006 1:53 pm
by blah

Code: Select all

While( Who.dead )
Sleep( 1 );
Endwhile
can be like that