Timer/pl
From Second Life Wiki
Second Life Wiki > Timer > Timer/pl
| LSL Portal | | | Funkcje | | | Zdarzenia | | | Typy | | | Stałe | | | Potoki | | | Biblioteka Skryptów | | | Tutoriale |
Description
Event: timer( ){ ; }| 11 | Event ID |
Powtarza kod zawarty w timer(). Jest rezultatem wywołania funkcji bibliotecznej llSetTimerEvent.
Caveats
- Dylatacja czasu pływa ujemnie na dziłanie zdarzenia timer.
- Tylko jeden timer może być na raz aktywny.
- Timer zachowuje się podczas zmiany stanu obiektu, ale nie podczas resetu skryptu.
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"); } }
This article wasn't helpful for you? Maybe the related article at the LSL Wiki is able to bring enlightenment.

