|
tomata Potato
Registered User
Join date: 10 Mar 2006
Posts: 4
|
03-13-2006 21:34
If I call llSetTimerEvent(), and then call it again to change the interval, am I spawning another timer? (i.e) I'll have 2 now?
I can't find anything to kill the last timer.
Resetting the script will kill the timer, but is there a way to do it without reset?
Thank you.
|
|
Jigsaw Partridge
A man of parts
Join date: 3 Apr 2005
Posts: 69
|
03-13-2006 22:01
Passing an argument of 0.0 to llSetTimerEvent() will cancel any existing timer. If instead of cancelling the timer you just call llSetTimerEvent() with a new interval value, then I believe it has the effect of cancelling the existing timer, and starting a new one with the interval you specify. There can only ever be one timer active in a script.
|
|
Eep Quirk
Absolutely Relative
Join date: 15 Dec 2004
Posts: 1,211
|
03-13-2006 22:04
There may only be one timer per script but there can be many timer scripts per prim, making for some interesting effects. 
|