Permissions
Request and inspect permissions for avatar and scripted actions.
What do you want to do?
llRequestPermissions(key agent, integer permissions)Requests permissions (a bitfield specified by permissions) from the agent in the same region, calling run_time_permissions if granted. This call does not pause script execution.integer llGetPermissions()Returns an integer bitfield representing the permissions (PERMISSION_*) currently granted to the script.key llGetPermissionsKey()Returns the key (UUID) of the avatar that last granted or declined permissions to the script, or NULL_KEY if the permissions request was ignored or cancelled.Reference
28 topic entries
Badges
Kind
llClearCameraParams()Resets all camera parameters to default values and turns off scripted camera control. Requires thePERMISSION_CONTROL_CAMERAruntime permission (automatically granted for attached or sat-on objects).functionP (Requires PERMISSION_CONTROL_CAMERA)llForceMouselook(integer mouselook)Sets whether any avatar sitting on this prim is forced into mouselook mode. Setting mouselook toTRUEforces the mode;FALSE(default) allows the avatar to keep their current camera mode.functionstring llGetAnimation(key avatar)Returns a string representing the name of the currently playing locomotion animation for the specified avatar.functionlist llGetAnimationList(key avatar)Returns a list of keys (UUIDs) representing all active animations currently playing on the specified avatar.functionstring llGetAnimationOverride(string anim_state)Returns a string representing the name of the animation currently overriding the specified anim_state. Requires thePERMISSION_OVERRIDE_ANIMATIONSorPERMISSION_TRIGGER_ANIMATIONruntime permission.functionP (Requires PERMISSION_OVERRIDE_ANIMATIONS, PERMISSION_TRIGGER_ANIMATION)float llGetCameraAspect()Returns a float representing the camera's current aspect ratio (width/height) of the agent who grantedPERMISSION_TRACK_CAMERA. Returns 0.0 if permissions are not granted.functionP (Requires PERMISSION_TRACK_CAMERA)float llGetCameraFOV()Returns a float representing the camera's current field of view (FOV) in radians of the agent who grantedPERMISSION_TRACK_CAMERA. Returns 0.0 if permissions are not granted.functionP (Requires PERMISSION_TRACK_CAMERA)vector llGetCameraPos()Returns a vector representing the camera's current position in region coordinates of the agent who grantedPERMISSION_TRACK_CAMERA. ReturnsZERO_VECTORif permissions are not granted.functionP (Requires PERMISSION_TRACK_CAMERA)rotation llGetCameraRot()Returns a rotation representing the camera's current orientation of the agent who grantedPERMISSION_TRACK_CAMERA. ReturnsZERO_ROTATIONif permissions are not granted.functionP (Requires PERMISSION_TRACK_CAMERA)integer llGetPermissions()Returns an integer bitfield representing the permissions (PERMISSION_*) currently granted to the script.functionkey llGetPermissionsKey()Returns the key (UUID) of the avatar that last granted or declined permissions to the script, orNULL_KEYif the permissions request was ignored or cancelled.functioninteger llGiveMoney(key destination, integer amount)Transfers the specified amount of L$ from the script owner to the destination avatar. Silently fails if thePERMISSION_DEBITpermission has not been granted. Returns 0 (usellTransferLindenDollarsto match transactions totransaction_resultevents).functionP (Requires PERMISSION_DEBIT)llReleaseControls()Stops taking inputs (previously acquired viallTakeControls) from the avatar, dequeuing any remaining control events and revoking thePERMISSION_TAKE_CONTROLSpermission.functionllRequestExperiencePermissions(key agent, string name)Requests permission from the specified agent to participate in the experience. These permissions are persistent and apply grid-wide across all scripts in the experience, automatically triggeringexperience_permissionsorexperience_permissions_denied.functionX (Requires an experience)llRequestPermissions(key agent, integer permissions)Requests permissions (a bitfield specified by permissions) from the agent in the same region, callingrun_time_permissionsif granted. This call does not pause script execution.functionllResetAnimationOverride(string anim_state)Resets the animation override for anim_state to its default value (use 'ALL' to reset all states). Requires thePERMISSION_OVERRIDE_ANIMATIONSpermission.functionP (Requires PERMISSION_OVERRIDE_ANIMATIONS)llSetAnimationOverride(string anim_state, string anim)Overrides the default animation for anim_state with anim (which must be in the object's inventory or a built-in animation). Requires thePERMISSION_OVERRIDE_ANIMATIONSpermission.functionP (Requires PERMISSION_OVERRIDE_ANIMATIONS)llSetCameraParams(list rules)Sets multiple camera parameters simultaneously using the list of rules. Requires thePERMISSION_CONTROL_CAMERAruntime permission.functionP (Requires PERMISSION_CONTROL_CAMERA)llStartAnimation(string anim)Starts the animation anim (inventory or built-in) on the avatar who granted the script thePERMISSION_TRIGGER_ANIMATIONpermission (automatically granted for attached or sat-on objects).functionP (Requires PERMISSION_TRIGGER_ANIMATION)llStopAnimation(string anim)Stops the specified animation anim (inventory, built-in, or UUID) on the avatar who granted the script thePERMISSION_TRIGGER_ANIMATIONpermission (automatically granted for attached or sat-on objects).functionP (Requires PERMISSION_TRIGGER_ANIMATION)llTakeControls(integer controls, integer accept, integer pass_on)Intercepts inputs (keyboard/mouse clicks) from the agent, specifically those specified by controls. The boolean accept determines if events are generated, and pass_on determines if inputs also perform their default functions. Requires thePERMISSION_TAKE_CONTROLSruntime permission.functionP (Requires PERMISSION_TAKE_CONTROLS)llTeleportAgent(key agent, string landmark, vector position, vector look_at)Teleports the owning agent (who must grantPERMISSION_TELEPORT) to a landmark in the object's inventory. If landmark is empty, teleports them to position within the current region. Upon arrival, the agent is turned to face look_at. Can only teleport the owner.functionP (Requires PERMISSION_TELEPORT)llTeleportAgentGlobalCoords(key agent, vector global_coordinates, vector region_coordinates, vector look_at)Teleports the owning agent (who must grantPERMISSION_TELEPORT) to region_coordinates within a target region specified by global_coordinates. Upon landing, the agent faces the direction look_at. Can only teleport the owner.functionP (Requires PERMISSION_TELEPORT)key llTransferLindenDollars(key destination, integer amount)Transfers amount of L$ from the script owner to the destination avatar, requiring thePERMISSION_DEBITpermission. Returns a key query handle matching the resultingtransaction_resultevent.functionP (Requires PERMISSION_DEBIT)vector llWorldPosToHUD(vector world_pos)Returns the local position vector that places the center of the HUD object directly over the world coordinate world_pos as viewed by the current camera. Requires thePERMISSION_TRACK_CAMERAruntime permission.functionP (Requires PERMISSION_TRACK_CAMERA)run_time_permissions(integer perm)Triggered when an agent grants or denies runtime permissions requested byllRequestPermissions. Passes the active integer permissions bitfield perm (returns 0 if no permissions are currently granted).eventexperience_permissions(key agent_id)Triggered when the agent specified by agent_id approves an experience permissions request (interactively or automatically if previously approved).eventexperience_permissions_denied(key agent_id, integer reason)Triggered when the agent specified by agent_id denies experience permissions, or when permission is blocked for other reasons (specified by the error code reason).event
No matching entries. Try a different term or filter.