New to DoAfter

Posted by Ghambi on Tue 15 Sep 2009 12:54 PM — 3 posts, 12,248 views.

#0
Alright I cannot figure out how to make a trigger call a script so that it will call a command out after 5 seconds.

My trigger is "pole goes lax as the * swims toward the boat."
I need it to send "tug hard" after 5 seconds

any chance somebody could walk me through this?
Amended on Tue 15 Sep 2009 12:56 PM by Ghambi
USA #1
Set the "Send to" option to "Script", and in the Send box, put this in:


DoAfter(5, "tug hard")


This creates a one-shot Timer that will fire five seconds after that script is called. Meanwhile the script continues executing, so you could do other things or add more timers.
#2
thank you very much works great