Scripted permissions

From Second Life Wiki
Jump to navigation Jump to search

One permission the act of sitting grants is that of avatar animation, but the LSL techniques remain unchanged. To associate an animation with sitting, the object being sat upon will need a script that calls llRequestPermissions and contains llStartAnimation within the event run_time_permissions; the only difference that the automatic permissions make is that it will jump from the first step to the second without pausing to ask the user whether the object has permission to animate their avatar. Offset and rotation for the animation should be set with llSitTarget beforehand in most cases, probably either hard-coded into state_entry or fetched from a notecard. (Note: This initial entry was made upon encountering a linked-to, non-existent page, by someone completely unfamiliar with the wiki markup system, so it probably needs a lot of work in linking referenced functions to their correct pages as well as adding information on any other permissions granted by sitting.)