Usage
Script permissions are requested by llRequestPermissions()
to ask agent for permissions to run certain classes of
functions.
/* make avatar sit upon touching the object and granting animation permission */
default
{
touch_end(integer detected)
{
llRequestPermissions(llDetectedKey(0), PERMISSION_TRIGGER_ANIMATION);
}
run_time_permissions(integer perm)
{
if (perm & PERMISSION_TRIGGER_ANIMATION)
{
llStartAnimation("sit");
}
}
}
PERMISSION_DEBIT
Permission can be only be granted by owner.
Permission to take money from agent's account.
PERMISSION_TAKE_CONTROLS
Automatically granted when sat on, attached.
Permission to take agent's controls.
PERMISSION_TRIGGER_ANIMATION
Automatically granted when sat on, attached.
Permission to start or stop Animations on agent.
PERMISSION_ATTACH
Automatically granted when attached.
Permission to attach/detach from agent.
PERMISSION_CHANGE_LINKS
Permission can be only be granted by owner.
Permission to change links.
PERMISSION_TRACK_CAMERA
Automatically granted when sat on, attached.
Permission to track the agent's camera position and rotation.
PERMISSION_CONTROL_CAMERA
Automatically granted when sat on, attached.
Permission to control the agent's camera.
PERMISSION_TELEPORT
Permission to teleport the agent.
PERMISSION_SILENT_ESTATE_MANAGEMENT
Permission can be only be granted by owner.
Permission to manage estate access without notifying the owner of changes.
PERMISSION_OVERRIDE_ANIMATIONS
Automatically granted when attached.
Permission to configure the overriding of default animations on agent.
PERMISSION_RETURN_OBJECTS
Permission can be only be granted by owner, group owner.
Permission to Used by llReturnObjectsByOwner and llReturnObjectsByID to return objects from parcels.