attach

attach(key id) This event handler is triggered whenever the object is attached (which makes it an attachment) or detached from the avatar. If it is attached, id contains the key of the avatar it is attached to, otherwise id contains NULL_KEY. Example: default {...

changed

changed(integer change) The changed event is invoked when operations change certain properties of the prim/object. The change parameter is a bit field of one or more of the following values: Constant Value Indicates   CHANGED_INVENTORY 0x1 changed...

Control

control(key id, integer held, integer change) Once a script has permission to take control inputs from the avatar with the key id (see llRequestPermissions), and has taken control of the desired set (see llTakeControls), this event will be used to pass the state of...

Dataserver

dataserver(key queryid, string data) This event handler is triggered when the requested data is returned to the script. Data may be requested using the llGetNotecardLine, llGetNumberOfNotecardLines, llRequestAgentData, llRequestInventoryData,...

Events

LSL is an event-driven language. Literally, scripts are divided into blocks of code that are triggered when a certain event happens. Scripts can provide event handlers, like moving_end or touch_start. If a script provides an event handler, and an event of this type...