Does anybody know if/how i can activate/stop a timer from a trigger?

Posted by AsheOck on Wed 30 Apr 2003 02:00 AM — 2 posts, 10,673 views.

#0
I was wondering if there was a way to Start or stop a timer after reciving an input from the MUX?
Also on a SemiSide note, can i use a trigger to define how many times a timer runs or how long it runs?
Australia Forum Administrator #1
The trigger could do:

world.EnableTimer "timername", 0

That would disable it. Or it could delete it:

world.DeleteTimer "timername"

(You would set the trigger to "send to script" to do that).

You could also use a wildcard (or something) in a trigger to define how long a timer ran (this is the time between firings however).

Timers either run:

* once
* every X seconds
* at a particular time

You cannot set a timer to run every (say) 10 seconds for 5 minutes, however you could do that with 2 timers. One which ran every 10 seconds, and another that ran for 5 minutes which deleted the first one.