Difference between revisions of "Category:LSL Events"

From Second Life Wiki
Jump to navigation Jump to search
m
(Corrected description of timers persisting over state changes, while sensors do not.)
Line 3: Line 3:
Within [[state]]s LSL works on events, such as the scripted object starting to move ([[moving_start]]), colliding with things ([[collision_start]]) or a recurring timer ([[timer]]).
Within [[state]]s LSL works on events, such as the scripted object starting to move ([[moving_start]]), colliding with things ([[collision_start]]) or a recurring timer ([[timer]]).


Events do not interrupt each other, but instead are queued {{HoverText|FIFO|First In, First Out}}, though the [[state_entry]] event can jump the queue. On state change the event queue is cleared and any open listens are [[llListenRemove|removed]] automatically. Reoccurring events ([[sensor]] and [[timer]]) are set not to reoccur in the new state and must be manually re-enabled (via [[llSensor]], [[llSensorRepeat]] or [[llSetTimerEvent]]). Please refer to the [[State]] article for further details.
Events do not interrupt each other, but instead are queued {{HoverText|FIFO|First In, First Out}}, though the [[state_entry]] event can jump the queue. On state change the event queue is cleared and any open listens are [[llListenRemove|removed]] automatically. Reoccurring sensor events ([[sensor]]) are set not to reoccur in the new state and must be manually re-enabled (via [[llSensor]] or [[llSensorRepeat]]), but timer events (from [[llSetTimerEvent]]) ''do'' reoccur. Please refer to the [[State]] article for further details.


{{LSLC|Keywords}}
{{LSLC|Keywords}}
{{LSLC|}}
{{LSLC|}}

Revision as of 13:21, 21 May 2009

Within states LSL works on events, such as the scripted object starting to move (moving_start), colliding with things (collision_start) or a recurring timer (timer).

Events do not interrupt each other, but instead are queued FIFO, though the state_entry event can jump the queue. On state change the event queue is cleared and any open listens are removed automatically. Reoccurring sensor events (sensor) are set not to reoccur in the new state and must be manually re-enabled (via llSensor or llSensorRepeat), but timer events (from llSetTimerEvent) do reoccur. Please refer to the State article for further details.