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 ...
Delaying
Posted by Geruwer on Mon 08 May 2006 10:52 AM — 3 posts, 15,458 views.
If your variable is called "test" this works:
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
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
wow ... that's cool ... thank you very much ...