Delaying

Posted by Geruwer on Mon 08 May 2006 10:52 AM — 3 posts, 15,458 views.

#0
I need to set variable to true ... then wait 2 seconds ... and then set the variable back to false ... how can I do it ? the world.DoAfter command doesn't work ...
Australia Forum Administrator #1
If your variable is called "test" this works:


DoAfterSpecial(2, "test = false", 12)


What that does is send "test = false" to the script engine (12) after 2 seconds.

See:

http://www.gammon.com.au/scripts/doc.php?function=DoAfterSpecial
#2
wow ... that's cool ... thank you very much ...