The state_entry event
occurs whenever a new state
is entered, including script
, and is always the first event handled.
This event is not
invoked upon changing to the same state.
triggered every time the object
, 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
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