Avatar Target
Inspect avatars and find APIs that act on them.
What do you want to do?
integer llGetAgentInfo(key id)Returns an integer bitfield containing status information about the agent specified by id (such as AGENT_FLYING, AGENT_ATTACHMENTS, AGENT_SITTING, etc.).list llGetAgentList(integer scope, list options)Requests a list of avatar UUID keys for agents currently in the region, limited by scope. Returns a list of keys or a list containing an error message string.string llGetDisplayName(key id)Returns the display name string of the avatar specified by id if they are in the region or cached; returns an empty string otherwise (use llRequestDisplayName if the avatar is absent).Reference
54 topic entries
Badges
Kind
integer llAgentInExperience(key agent)ReturnsTRUEif the specified agent is in the experience and the experience can run in the current region/location; returnsFALSEotherwise.functionX (Requires an experience)llAttachToAvatar(integer attach_point)Attaches the object to the avatar who has granted thePERMISSION_ATTACHpermission. Takes the object into the user's inventory and attaches it at attach_point.functionP (Requires PERMISSION_ATTACH)llAttachToAvatarTemp(integer attach_point)Attaches the object temporarily to an avatar who has granted thePERMISSION_ATTACHpermission. No permanent inventory is created, and the object disappears on detach or disconnect. Can be used on non-owners (changing ownership to the wearer).functionP (Requires PERMISSION_ATTACH)key llAvatarOnLinkSitTarget(integer link)Returns the UUID of the avatar seated on the specified link's sit target, orNULL_KEYif no avatar is sitting there.functionkey llAvatarOnSitTarget()Returns the UUID of the avatar seated on the prim's sit target (defined viallSitTarget), orNULL_KEYif no avatar is sitting there or the prim lacks a sit target.functionllClearCameraParams()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)llDetachFromAvatar()Detaches the object containing the script from the avatar. Requires thePERMISSION_ATTACHruntime permission (automatically granted to attached objects). Note that the detached object is completely removed from the region and not dropped on the ground.functionP (Requires PERMISSION_ATTACH)key llDetectedOwner(integer number)Returns the key (UUID) of the owner of the detected object specified by number. Returns an invalid key if number is not a valid index.functionllForceMouselook(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.functioninteger llGetAgentInfo(key id)Returns an integer bitfield containing status information about the agent specified by id (such asAGENT_FLYING,AGENT_ATTACHMENTS,AGENT_SITTING, etc.).functionstring llGetAgentLanguage(key avatar)Returns a string representing the language code of the preferred interface language set by the avatar.functionlist llGetAgentList(integer scope, list options)Requests a list of avatar UUID keys for agents currently in the region, limited by scope. Returns a list of keys or a list containing an error message string.functionvector llGetAgentSize(key avatar)Returns a vector representing the estimated bounding box size of the specified avatar, orZERO_VECTORif they are not in the same region.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)list llGetAttachedList(key avatar)Returns a list of object keys (UUIDs) worn by the specified avatar, in the order they were attached. HUDs are not included because they are neither public nor visible. Returns a list containing an error message string on failure.functionlist llGetAttachedListFiltered(key avatar, list options)Returns a list of object keys (UUIDs) worn by the specified avatar, in the order they were attached, filtered by options. Returns a list containing an error message string on failure.functionfloat 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)string llGetDisplayName(key id)Returns the display name string of the avatar specified by id if they are in the region or cached; returns an empty string otherwise (usellRequestDisplayNameif the avatar is absent).functioninteger llGetGameControlMode(key id)Returns a GAME_CONTROL_MODE_* integer indicating the current game-control mode for the avatar specified by id.functionNEW (Added 2026-09-30)list llGetGameControlModeAxes(key id)Returns a list of floats representing the modal axes for the current game-control mode of the avatar specified by id. Element count and index meanings vary by mode; use the GAME_CONTROL_AXIS_* constants as indices.functionNEW (Added 2026-09-30)integer llGetGameControlModeButtons(key id)Returns a bitmask of the modal buttons currently active for the current game-control mode of the avatar specified by id. Bit meanings vary by mode; use the GAME_CONTROL_BUTTON_* constants as masks.functionNEW (Added 2026-09-30)key 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.functionstring llGetUsername(key id)Returns a string representing the unique username of the avatar specified by id if they are connected to the region or cached; returns an empty string otherwise (usellRequestUsernameif the avatar is absent).functionlist llGetVisualParams(key agentid, list params)Returns a list containing the values of the visual parameters requested in params for the agent specified by agentid.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)integer llIsFriend(key agent_id)ReturnsTRUEif agent_id and the owner of the script are friends, andFALSEotherwise.functionkey llName2Key(string name)Requests the key (UUID) of the avatar name in the current region. ReturnsNULL_KEYif no matching agent is present. Formats are 'First Last' or 'first.last' (assumes 'Resident' if last name is omitted; case-insensitive).functionllReleaseControls()Stops taking inputs (previously acquired viallTakeControls) from the avatar, dequeuing any remaining control events and revoking thePERMISSION_TAKE_CONTROLSpermission.functioninteger llReplaceAgentEnvironment(key agent_id, float transition, string environment)Replaces the region and parcel environment seen by the specified agent_id as part of an experience, transitioning the settings over transition seconds. PassingNULL_KEYor an empty string for environment restores defaults.functionX (Requires an experience)key llRequestAgentData(key id, integer data)Asynchronously requests the specified data category (DATA_*) about the agent id. Triggers a dataserver event with the results and returns a key query handle.functionS (Sleeps 0.1s)key llRequestDisplayName(key id)Asynchronously requests the display name of the agent specified by id, triggering a dataserver event with the results. The agent does not need to be online or in the region. Returns a key query handle.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)key llRequestUserKey(string username)Asynchronously requests the Agent ID key (UUID) for the agent specified by their current or historical username, returningNULL_KEYif not found. Returns a key query handle for the dataserver event.functionkey llRequestUsername(key id)Asynchronously requests the unique single-word username of the agent identified by id, triggering a dataserver event. The agent does not need to be online or in the region. Returns a key query handle.functioninteger llSetAgentEnvironment(key agent_id, float transition, list params)Sets an individual agent's environmental settings using the attributes in params over a duration of transition seconds. Must be used as part of an experience; passing an empty list removes overrides.functionX (Requires an experience)llSetAgentRot(rotation rot, integer flags)Sets the rotation of the avatar to rot, controlled by flags.functionllSetCameraParams(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)llTeleportAgentHome(key avatar)Teleports the avatar (who must be standing on land owned by the script owner) directly to their designated home location without warning (similar to a God Summons).functionS (Sleeps 5s)llUnSit(key id)Forces the agent specified by id to stand up if they are sitting on the object containing the script, or are currently over land owned by the object's owner.functionvector 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)control(key id, integer level, integer edge)Triggered to pass captured avatar control inputs into the script. The parameter level indicates held controls, and edge indicates change in controls (both are bitfields of CONTROL_* constants).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).eventgame_control(key id, integer button_levels, list axes)Triggered when a compatible viewer sends game controller input changes for the avatar specified by id. Only triggers for scripts in attachments or seats.event
No matching entries. Try a different term or filter.