Difference between revisions of "State entry"

From Second Life Wiki
Jump to navigation Jump to search
m
Line 1: Line 1:
{{LSL_Event|event_id=0|event_delay|event=state_entry|event_desc=Triggered on any state transition and startup|constants|spec|caveats|examples|helpers|also_header|also_events|also_functions|also_articles|also_footer|notes=state_entry() callback is not called object is rezzed from inventory. Derezzing an object to inventory causes the script to save the current state. Code that should be executed with every creation should be done from state_entry and from {{LSLG|on_rez}}.|mode|deprecated}}[[Category:LSL_Stub]]
{{LSL_Event
|event_id=0|event_delay|event=state_entry
|event_desc=Triggered on any state transition and startup
|constants
|spec
|caveats=*state_entry() event is not called when an object is rezzed from inventory.
**Derezzing an object to inventory causes the script to save the current state.  
***Code that should be executed with every creation should be done from [[on_rez]].
**The only time a state_entry event would be triggered if it were rezzed from inventory is:
***If a copy was taken from inworld
***The state_entry event had not been triggered before the object was taken which can only happen on no-script land.
|examples
|helpers
|also_header
|also_events
|also_functions
|also_articles
|also_footer
|notes
|mode
|deprecated
|cat1
|cat2
|cat3
|cat4
}}

Revision as of 10:19, 23 February 2007

Description

Event: state_entry( ){ ; }

Triggered on any state transition and startup


Caveats

  • state_entry() event is not called when an object is rezzed from inventory.
    • Derezzing an object to inventory causes the script to save the current state.
      • Code that should be executed with every creation should be done from on_rez.
    • The only time a state_entry event would be triggered if it were rezzed from inventory is:
      • If a copy was taken from inworld
      • The state_entry event had not been triggered before the object was taken which can only happen on no-script land.
All Issues ~ Search JIRA for related Bugs

Examples

Deep Notes

Signature

event void state_entry(  );