State entry

From Second Life Wiki
Revision as of 09:19, 23 February 2007 by Strife Onizuka (talk | contribs)
Jump to navigation Jump to search

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.


Examples

Deep Notes

Signature

event void state_entry(  );