Timer/pl

From Second Life Wiki
< Timer
Revision as of 15:25, 13 May 2008 by Smokkam Short (talk | contribs) (New page: {{LSL_Event|event_id=11|event_delay|event=timer|event_desc=Powtarza kod zawarty w timer(). Jest rezultatem wywołania funkcji bibliotecznej {{LSLG|llSetTimerEvent}}. |constants |spec |cav...)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Description

Event: timer( ){ ; }

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.
All Issues ~ Search JIRA for related Bugs

Examples

<lsl> 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");
   }

} </lsl>

See Also

Functions

•  llSetTimerEvent

Deep Notes

Signature

event void timer(  );