PDA

View Full Version : Script.Wait


FoxLeader
02-03-2008, 07:42 PM
Hello,

I've been working on a personal project where a kind of Script.Wait would be helpful.
It should be in that kind: Script.Wait(number time, function name callback)
It pauses the specified time (in miliseconds) then continues the following script. Optionally, it could execute a callback function when finished.

This could simplify coding in numerous situations where Timers would not be needed anymore.

Regards,
FoxLeader

Note: As a workaround for now, I've found this: http://www.gammon.com.au/forum/bbshowpost.php?bbsubject_id=4956 which could be helpful. The only thing is that it's "plain Lua" which cannot be "copy-pasted" in AMS, and I don't have the knowledge yet to adapt it. Any help would be appreciated.

clueless
02-04-2008, 10:41 AM
This would be a handy function. i usually find theres several ways to work round this problem depending on why the pause is needed.

Darryl
02-04-2008, 12:08 PM
I believe this one has been suggested in the past a few times, but have added it again for consideration, thank you.

REF: 17193

FoxLeader
02-04-2008, 03:27 PM
Thanks Darryl :)