Difference between revisions of "State entry"

From Second Life Wiki
Jump to navigation Jump to search
m
Line 3: Line 3:
|event_desc=Triggered on any state transition and startup
|event_desc=Triggered on any state transition and startup
|constants
|constants
|spec
|spec=
|caveats=*state_entry() event is not called when an object is rezzed from inventory.
=== Triggered ===
**Derezzing an object to inventory causes the script to save the current state.  
#When rezzing a {{HoverText|script|in an object}} that does not have a saved state.
***Code that should be executed with every creation should be done from [[on_rez]].
#*If it was a copy taken from inworld
**The only time a state_entry event would be triggered if it were rezzed from inventory is:
#*If the event had not been triggered due to no-script land.
***If a copy was taken from inworld
#On script reset, either by client or [[llResetScript]]/[[llResetOtherScript]]
***The state_entry event had not been triggered before the object was taken which can only happen on no-script land.
 
=== Not Triggered ===
#When an object is rezzed.
|caveats
|examples
|examples
|helpers
|helpers

Revision as of 09:23, 23 February 2007