Difference between revisions of "State entry"

From Second Life Wiki
Jump to navigation Jump to search
m (Fix wrong JIRA issue number.)
Line 1: Line 1:
{{Issues/SVC-3379}}{{LSL_Event
{{Issues/SVC-3379}}{{LSL_Event
|event_id=0|event_delay|event=state_entry
|event_id=34|event_delay|event=http_request
|event_desc=Triggered on any state transition and startup
|event_desc=
|constants
|constants
|spec=
|spec=
=== Triggered ===
#Script save or adding to object
#State change
#*A [[state_exit]] is triggered in the old state and the [[state_entry]] is triggered in the new state. All other events in the queue are lost as a result of the state change.
#On script reset, either by client or [[llResetScript]]/[[llResetOtherScript]]
#When the object is rezzed ''without'' a saved script status
#*If it was a copy taken from inworld
#*If the event had not been triggered due to no-script land.
=== Not Triggered ===
#When the object is rezzed ''with'' saved script status
#*Use [[on_rez]] event in this situation
|caveats
|caveats
|examples=<lsl>default
|examples=
{
    state_entry()
    {
        llSay(0, "Hello, Avatar!");
    }
}</lsl>
|helpers
|helpers
|also_header
|also_header
|also_events={{LSL DefineRow||[[on_rez]]|Triggered when the object is rezzed}}
|also_events={{LSL DefineRow||[[http_response]]|}}
{{LSL DefineRow||[[state_exit]]|Triggered when the state is exited at state change}}
|also_functions=
|also_functions={{LSL DefineRow||[[llResetScript]]|Resets the script}}
{{LSL DefineRow||[[llResetOtherScript]]|Resets another script in the prim}}
{{LSL DefineRow||[[llGetStartParameter]]|The [[on_rez]] parameter (or [[llRemoteLoadScriptPin]] parameter)}}
|also_articles
|also_articles
|also_footer
|also_footer

Revision as of 12:35, 27 February 2009