Repeats the code in the timer(). Result of the llSetTimerEvent library function call.

Syntax

timer()

Event ID: 11.

Caveats

Examples

float gap = 2.0;
float counter = 0.0;

default
{
    state_entry()
    {
        // Activate the timer listener every 2 seconds
        llSetTimerEvent(gap);
    }

    timer()
    {
        counter = counter + gap; 
        llSay(0, (string)counter+" seconds have passed");
    }
}

See also

Functions