Script permissions

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.

© 2025 TOTO Lab.

Tutorial text and media are licensed under CC BY-NC 4.0, and code examples are CC0 by default unless noted otherwise in comments. You may share or adapt for non-commercial use with attribution.

Second Life and SL are trademarks of Linden Research, Inc. TOTO Lab and MIRAI TECH are not affiliated with or sponsored by Linden Research.