quote:
Originally posted by Riveck
You could try to do something like this:
/* Global Var */
var flag = false;
/* Wherever you want */
[...]
MsgPlus.AddTimer("MyTimer",5000);
while(flag == false) {}
[...]
/* The timer */
OnEvent_Timer(TimerId)
{
if (TimerId == "MyTimer")
{
flag=true;
MsgPlus.AddTimer("MyTimer",5000);
}
}
This wont work, i thought of this and tried several methodes to achieve this perior to your post. once you enter the while loop you cannot break early, even the onEvent timer waits for the loop to end and thus it runs indefinatly.
I really need a way to pause my script and have yet to find one.
edit: after 3 hours of trying today i think it just might be impossible.