Difference between revisions of "State entry"

From Second Life Wiki
Jump to navigation Jump to search
Line 5: Line 5:
|spec=
|spec=
=== Triggered ===
=== Triggered ===
#When rezzing a {{HoverText|script|in an object}} that does not have a saved state.
#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 result of the state change.
#On script reset, either by client or [[llResetScript]]/[[llResetOtherScript]]
#When rezzing a {{HoverText|script|in an object}} that does not have a saved status.
#*If it was a copy taken from inworld
#*If it was a copy taken from inworld
#*If the event had not been triggered due to no-script land.
#*If the event had not been triggered due to no-script land.
#On script reset, either by client or [[llResetScript]]/[[llResetOtherScript]]
#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 result of the state change.


=== Not Triggered ===
=== Not Triggered ===

Revision as of 09:36, 23 February 2007

Description

Event: state_entry( ){ ; }

Triggered on any state transition and startup


Specification

Triggered

  1. Script save or adding to object
  2. 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 result of the state change.
  3. On script reset, either by client or llResetScript/llResetOtherScript
  4. When rezzing a script that does not have a saved status.
    • If it was a copy taken from inworld
    • If the event had not been triggered due to no-script land.

Not Triggered

  1. When the object is rezzed (with saved script status)
    • Use on_rez event in this situation

Caveats


Examples

See Also

Events

•  on_rez Triggered when the object is rezzed
•  state_exit Triggered when the state is exited at state change

Functions

•  llResetScript Resets the script
•  llResetOtherScript Resets another script in the prim
•  llGetStartParameter The on_rez parameter (or llRemoteLoadScriptPin parameter)

Deep Notes

Signature

event void state_entry(  );