LSL Wiki Mirror 10-5-2006: llSetTimerEvent

HomePage :: PageIndex :: RecentChanges :: RecentlyCommented :: UserSettings ::
llSetTimerEvent(float sec)

Sets the timer event to be triggered every sec seconds. Passing 0.0 (or just 0) stops further timer events.

The timer persists over state changes, but gets removed when the script is reset.

default
{
    state_entry()
    {
        llSetTimerEvent(300); // five minutes: 5*60--no need to make LSL do this simple calculation
    }

    timer()
    {
        llOwnerSay("timeout");
    }
}


functions | events | timer
There are 11 comments on this page. [Display comments/form]