Difference between revisions of "Event Order"

From Second Life Wiki
Jump to navigation Jump to search
m (New page: The follow lists show which events are called for different actions =Wear or Attach from inventory / Login with item attached= * on_rez Event * attach Event (who != NULL_KEY) =At...)
 
 
(18 intermediate revisions by 6 users not shown)
Line 1: Line 1:
The follow lists show which events are called for different actions
{{LSL Header|ml=*}}{{LSLC|Events}}{{RightToc}}
The follow lists show which events are called for different actions and the order in which they are called.


=Wear or Attach from inventory / Login with item attached=
=Wear or Attach from inventory / Login with item attached=
    * on_rez Event
*[[On rez]] Event
    * attach Event (who != NULL_KEY)
*[[Attach]] Event ([[Key]] id != {{LSL_Constant/NULL_KEY}})
 
=Wear or Attach from inventory after changing owners=
*[[On rez]] Event
*[[Attach]] Event  ([[Key]] id != {{LSL_Constant/NULL_KEY}})
*[[Changed]] Event  ([[integer]] change & CHANGED_OWNER == [[TRUE]])


=Attach from ground=
=Attach from ground=
    * attach Event (who != NULL_KEY)
*[[Attach]] Event ([[Key]] id != {{LSL_Constant/NULL_KEY}})
      
      
=Detach to inventory / Drop from avatar to ground=
=Detach to inventory / Drop from avatar to ground=
    * attach Event (who = NULL_KEY)
*[[Attach]] Event ([[Key]] id = {{LSL_Constant/NULL_KEY}})
      
      
=Rez to Ground=
=Rez to ground=
    * on_rez Event
*[[On rez]] Event
      
      
=Reset while worn / Reset while on ground=
=Reset while worn / Reset while on ground=
    * state_entry Event
*[[State entry]] Event


=Change in state=
=Change in state=
    * state_entry Event  (May be other events called, not tested)
*[[State exit]] Event  (In current state)
*[[State entry]] Event  (In target state)

Latest revision as of 16:42, 1 May 2016

The follow lists show which events are called for different actions and the order in which they are called.

Wear or Attach from inventory / Login with item attached

Wear or Attach from inventory after changing owners

Attach from ground

Detach to inventory / Drop from avatar to ground

Rez to ground

Reset while worn / Reset while on ground

Change in state