Forgot? Join

Scripting

LSL Guide

Every script function this grid actually runs, read straight from the region software rather than copied from a wiki — including the wolf* functions that exist only here.

Functions · Constants

llSetTimerEvent

LSL
void llSetTimerEvent(float sec)

Causes the timer event to be triggered every Rate seconds.\ Passing in 0.0 stops further timer events.

Parameters

TypeName What it does
float sec Seconds between timer events; 0.0 stops it.

Example

integer count;

default
{
    state_entry()
    {
        llSetTimerEvent(5.0);
    }
    timer()
    {
        ++count;
        llSetText("Ticks: " + (string)count, <1,1,1>, 1.0);
        if (count == 12) llSetTimerEvent(0.0);   // stop after a minute
    }
}
Energy 10

The Linden Scripting Library — what every SL-compatible grid provides.

More in LSL