Difference between revisions of "Timer"

From Second Life Wiki
Jump to navigation Jump to search
(Example)
Line 3: Line 3:
|spec
|spec
|caveats
|caveats
|examples
|examples=<pre>
integer counter = 0;
 
default
{
    state_entry()
    {
        // Activate the timer listener every 2 seconds
        llSetTimerEvent(2);
    }
 
    timer()
    {
        counter = counter + 2;
        llSay(0, (string)counter+" seconds are passed");
    }
}
</pre>
|helpers
|helpers
|also_header
|also_header

Revision as of 11:46, 14 April 2007