Function SleepUntil(what);

Get Help on scripting in POL with configurations, config setups, script trouble shooting, etc.
Post Reply
User avatar
MontuZ
Forum Regular
Posts: 338
Joined: Fri Feb 10, 2006 8:08 am

Function SleepUntil(what);

Post 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.
blah
New User
Posts: 12
Joined: Thu Feb 02, 2006 12:05 pm

Post by blah »

Code: Select all

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