11.07.2015 Views

Linden Scripting Language Guide - Engineering Center

Linden Scripting Language Guide - Engineering Center

Linden Scripting Language Guide - Engineering Center

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

Appendix B. EventsEvery state must have at least one handler. You can choose to handle an event by defining one of the the reservedevent handlers named here.B.1. at_rot_targetat_rot_target(integer number, rotation target_rotation, rotation our_rotation);This event is triggered when a script comes within a defined angle of a target rotation. The range is set by a callto llRotTarget.B.2. attachattach(key attached);This event is triggered whenever a object with this script is attached or detached from an avatar. If it is attached,attached is the key of the avatar it is attached to, otherwise attached is NULL_KEY.B.3. changedchanged(integer changed);Triggered when various events change the object. The changed will be a bitfield of change constants.B.4. collisioncollision(integer total_number);This event is raised while another object is colliding with the object the script is attached to. The number ofdetected objects is passed to the script. Information on those objects may be gathered via the llDetected* libraryfunctions. (Collisions are also generated if a user walks into an object.)90

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!