Don't click here unless you want to be banned.

LSL Wiki : state_entry

HomePage :: PageIndex :: RecentChanges :: RecentlyCommented :: UserSettings :: You are crawl338.us.archive.org
state_entry()

The state_entry event occurs whenever a new state is entered, including script start/reset, and is always the first event handled.

This event is not invoked upon changing to the same state.

This event is not triggered every time the object is rezzed, due to the preservation of states between instances (rezes). Use on_rez for a reliable first event. It is also not called when the sim restarts.

Note: the LSL compiler doesn't recognise if there are two (or more) state_entry event handlers for the same state. Only the last state_entry is executed. And all the previous state_entry in the same state are ignored.

Compare with state_exit.


Events
There are 4 comments on this page. [Display comments/form]