Skip to content
lsl.devlsl.devLSL Dev

Functions

Find LSL functions by name, purpose, or topic. Signatures and descriptions follow the current definitions; deprecated and private entries are excluded.

501 functions

  • llAbs

    Returns the absolute (positive) integer value of val.

  • llAcos

    Returns the arccosine of val in radians.

  • llAddToLandBanList

    Adds the avatar to the parcel ban list for the specified number of hours. A value of 0 hours adds the avatar indefinitely. Banned users teleporting to the parcel are redirected to a neighboring parcel; the minimum accepted duration is 0.01 hours (approximately 36 seconds).

  • llAddToLandPassList

    Adds the avatar to the land pass list for the specified number of hours (or indefinitely if hours is 0).

  • llAdjustDamage

    Modifies the amount of damage applied by the current on_damage event after it completes processing, specified by the damage event index number.

  • llAdjustSoundVolume

    Adjusts the volume of the currently playing attached sound (has no effect on sounds started with llTriggerSound).

  • llAgentInExperience

    Returns TRUE if the specified agent is in the experience and the experience can run in the current region/location; returns FALSE otherwise.

  • llAllowInventoryDrop

    If add is TRUE, allows users without object modify permissions to drop inventory items into the prim. If FALSE, restricts inventory dropping to users with modify permissions.

  • llAngleBetween

    Returns the angle, in radians, between rotations start_rot and and end_rot.

  • llApplyImpulse

    Applies a linear impulse (momentum) to a physical object. If local is TRUE, the impulse is applied in local coordinates; otherwise, it is applied in global region coordinates.

  • llApplyRotationalImpulse

    Applies a rotational impulse (force) to a physical object. If local is TRUE, the rotational impulse is applied in local coordinates; otherwise, it is applied in global region coordinates.

  • llAsin

    Returns the arcsine of val in radians.

  • llAtan2

    Returns the arctangent of y/x in radians, using the signs to determine the quadrant. Note the argument order: Y is the first parameter, X is the second parameter.

  • llAttachToAvatar

    Attaches the object to the avatar who has granted the PERMISSION_ATTACH permission. Takes the object into the user's inventory and attaches it at attach_point.

  • llAttachToAvatarTemp

    Attaches the object temporarily to an avatar who has granted the PERMISSION_ATTACH permission. No permanent inventory is created, and the object disappears on detach or disconnect. Can be used on non-owners (changing ownership to the wearer).

  • llAvatarOnLinkSitTarget

    Returns the UUID of the avatar seated on the specified link's sit target, or NULL_KEY if no avatar is sitting there.

  • llAvatarOnSitTarget

    Returns the UUID of the avatar seated on the prim's sit target (defined via llSitTarget), or NULL_KEY if no avatar is sitting there or the prim lacks a sit target.

  • llAxes2Rot

    Returns the rotation defined by the coordinate axes fwd, left, and up.

  • llAxisAngle2Rot

    Returns the rotation that rotates angle radians around the axis vector.

  • llBase64ToInteger

    Returns an integer representing the Base64-decoded big-endian value of str. Returns zero if str is longer than 8 characters; the return value is unpredictable if str contains fewer than 6 characters.

  • llBase64ToString

    Decodes the Base64-encoded string str into a conventional string, interpreting the bytes as a UTF-8 character sequence. Unprintable characters are converted to question marks.

  • llBreakAllLinks

    Delinks all prims in the linkset. Requires the PERMISSION_CHANGE_LINKS runtime permission, which must be requested and granted by the owner.

  • llBreakLink

    Delinks the prim specified by the link number link. Requires the PERMISSION_CHANGE_LINKS runtime permission.

  • llCastRay

    Casts a ray into the physics world from start to end and reports collision data for intersections with objects based on options. Returns a list of strided values [UUID_1, {link_number_1}, hit_position_1, {hit_normal_1}, ..., status_code]. A negative status_code indicates an error; otherwise, it represents the number of hits.

  • llCeil

    Returns val rounded toward positive infinity. In other words, returns the smallest integer greater than or equal to val.

  • llChar

    Constructs and returns a single-character string from the given Unicode codepoint ordinal.

  • llClearCameraParams

    Resets all camera parameters to default values and turns off scripted camera control. Requires the PERMISSION_CONTROL_CAMERA runtime permission (automatically granted for attached or sat-on objects).

  • llClearLinkMedia

    Deletes the media and clears all parameters from the given face on the linked prim. Returns an integer STATUS_* flag detailing the success or failure of the operation.

  • llClearPrimMedia

    Deletes the media and clears all parameters from the specified face. Returns an integer STATUS_* flag detailing the success or failure of the operation.

  • llCollisionFilter

    Sets the collision filter, either exclusively or inclusively. If accept is TRUE, only collisions matching name and id are processed; if FALSE, matches are excluded. Pass an empty string or NULL_KEY to name or id to skip filtering on that parameter.

  • llCollisionSound

    Suppresses default collision sounds and replaces default impact sounds with impact_sound at the volume level specified by impact_volume. Supply an empty string to only suppress collision sounds.

  • llComputeHash

    Returns a hex-encoded hash digest string of message using the specified cryptographic algorithm.

  • llCos

    Returns the cosine of theta. Theta is in radians.

  • llCreateCharacter

    Converts the linkset containing the script into a pathfinding character entity (required to use pathfinding functions) using the specified options.

  • llCreateKeyValue

    Starts an asynchronous transaction to create a key-value pair (k and v) associated with the script's experience. Returns a key query handle for the dataserver event. Fails with XP_ERROR_STORAGE_EXCEPTION if the key already exists.

  • llCreateLink

    Attempts to link the object containing the script with target. Requires the PERMISSION_CHANGE_LINKS runtime permission.

  • llCSV2List

    Parses the comma-separated string src and returns it as a list.

  • llDamage

    Generates a damage event delivering the specified amount of damage and damage_type to the targeted avatar or task in the same region.

  • llDataSizeKeyValue

    Starts an asynchronous transaction to request the used and total data storage allocated for the experience. Returns a key query handle for the dataserver event.

  • llDeleteCharacter

    Converts the linkset back to a standard physical object, removing all pathfinding properties.

  • llDeleteKeyValue

    Starts an asynchronous transaction to delete the key-value pair associated with key k in the experience. Returns a key query handle for the dataserver event.

  • llDeleteSubList

    Returns a copy of the list src with the slice from start_index to end_index (inclusive) removed. Negative indices count backward from the end of the list. If start_index is greater than end_index, the deletion excludes the specified range.

  • llDeleteSubString

    Returns a copy of the string src with the characters from start_index to end_index (inclusive) removed. Negative indices count backward from the end of the string. If start_index is greater than end_index, the deletion excludes the specified range.

  • llDerezObject

    Derezzes (deletes or returns) a targeted object in the region previously rezzed by a script in this linkset, returning TRUE on success or FALSE on failure.

  • llDetachFromAvatar

    Detaches the object containing the script from the avatar. Requires the PERMISSION_ATTACH runtime permission (automatically granted to attached objects). Note that the detached object is completely removed from the region and not dropped on the ground.

  • llDetectedDamage

    Returns a list containing pending damage information for the event specified by number, including the current damage, the damage type, and the original damage delivered.

  • llDetectedGrab

    Returns a vector representing the grab offset of the user touching the object. Only works in touch events and returns <0.0, 0.0, 0.0> if number is not a valid index.

  • llDetectedGroup

    Returns TRUE if the detected object or avatar specified by number has the same active group as the prim containing the script. Returns FALSE if the group is not active or if they are not in the group.

  • llDetectedKey

    Returns the key (UUID) of the detected object or avatar specified by number, or NULL_KEY if number is not a valid index.

  • llDetectedLinkNumber

    Returns the link number (integer) of the triggered event (touches and collisions only) specified by number. Returns 0 for non-linked objects, 1 for the root prim, and 2+ for child prims. Returns 0 if not supported by the event.

  • llDetectedName

    Returns a string representing the name of the detected object or avatar specified by item. Returns an empty string if item is not a valid index.

  • llDetectedOwner

    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.

  • llDetectedPos

    Returns the vector position (in region coordinates) of the detected object or avatar specified by number, or <0.0, 0.0, 0.0> if number is not a valid index.

  • llDetectedRezzer

    Returns the key (UUID) of the object or avatar that rezzed the detected object specified by number.

  • llDetectedRot

    Returns the rotation of the detected object or avatar specified by number, or <0.0, 0.0, 0.0, 1.0> if number is not a valid offset index.

  • llDetectedTouchBinormal

    Returns the surface binormal vector (tangent to the surface, pointing along the positive T (V) direction of tangent space) at the touched location specified by index. Can be used with llDetectedTouchNormal to determine the tangent space.

  • llDetectedTouchFace

    Returns the integer index of the face clicked by the avatar in the touch event specified by index.

  • llDetectedTouchNormal

    Returns the surface normal vector (perpendicular to the surface) at the touched location specified by index. Can be used with llDetectedTouchBinormal to determine the tangent space.

  • llDetectedTouchPos

    Returns the vector position where the object was touched (specified by index) in region coordinates, or in screen-space coordinates if the object is attached as a HUD.

  • llDetectedTouchST

    Returns the surface coordinates (<s, t, 0.0>) where the prim was touched, specified by index. X and Y contain the horizontal (s) and vertical (t) face coordinates, typically in the interval [0.0, 1.0]. Returns TOUCH_INVALID_TEXCOORD if coordinates cannot be determined.

  • llDetectedTouchUV

    Returns the texture coordinates (<u, v, 0.0>) where the prim was touched, specified by index. X and Y contain the horizontal (u) and vertical (v) texture coordinates, typically in the interval [0.0, 1.0] (affected by repeats and rotation). Returns TOUCH_INVALID_TEXCOORD if coordinates cannot be determined.

  • llDetectedType

    Returns an integer bitfield representing the types (AGENT, ACTIVE, PASSIVE, or SCRIPTED) of the detected object or avatar specified by number. Returns 0 if number is not a valid index.

  • llDetectedVel

    Returns the vector velocity of the detected object or avatar specified by number, or <0.0, 0.0, 0.0> if number is not a valid offset index.

  • llDialog

    Shows a dialog box on the screen of the specified agent, displaying msg along with up to 12 choice buttons. Clicking a button chats its label on channel. The chat originates at the object's position, but uses the agent's name and UUID, so it can be heard as long as the agent is still in the region.

  • llDie

    Deletes the entire object containing the script (the object does not go to inventory). Use llBreakLink first to delete only a single prim.

  • llDumpList2String

    Returns a string that is the list src converted to a single string, with separator placed between each entry.

  • llEdgeOfWorld

    Checks if the border reached along the vector dir from the vector pos is the edge of the world (i.e., has no neighboring simulator). Returns TRUE if it hits the edge of the world, or FALSE if there is a neighboring simulator.

  • llEjectFromLand

    Ejects the specified avatar from land/parcels owned by the object's owner (group or resident).

  • llEmail

    Sends an email with the given destination address, subject, and body msg. The email will be sent from `{ll.GetKey()}@lsl.secondlife.com`. This can be used for script communication; see llGetNextEmail()

  • llEscapeURL

    Returns a string representing the escaped/encoded version of url, replacing spaces with '%20' and non-alphanumeric characters with their '%xx' hexadecimal UTF-8 equivalent.

  • llEuler2Rot

    Returns the quaternion representation of the Euler angles (in radians) within vec.

  • llEvade

    Directs a pathfinding character to evade target, attempting to hide from its pursuer if a hiding spot is available (i.e., no line of sight from the character's head to the pursuer's head, and no direct path on the navmesh).

  • llExecCharacterCmd

    Sends a command (specified by command) to the pathing system with options. Currently only supports stopping pathfinding or making the character jump.

  • llFabs

    Returns the absolute (positive) value of val.

  • llFindNotecardTextCount

    Searches the text of a cached notecard for lines containing the given pattern and returns the number of matches found through a dataserver event.

  • llFindNotecardTextSync

    Synchronously searches a cached notecard name for lines containing pattern, returning a list of line and column numbers. Returns a list containing 'NAK' if the notecard is not cached, or an empty list if no matches are found.

  • llFleeFrom

    Directs a pathfinding character to keep the specified distance from the target position vector (within the region or adjacent regions).

  • llFloor

    Returns val rounded toward negative infinity. In other words, returns the largest integer less than or equal to val.

  • llForceMouselook

    Sets whether any avatar sitting on this prim is forced into mouselook mode. Setting mouselook to TRUE forces the mode; FALSE (default) allows the avatar to keep their current camera mode.

  • llFrand

    Returns a pseudo-random float in the range [0.0, mag) or (mag, 0.0] depending on the sign of mag. The value is inclusive of 0.0 but exclusive of mag.

  • llGenerateKey

    Generates and returns a unique versioned UUID key (utilizing SHA-1 hashing). Due to being versioned, it will not return NULL_KEY; however, the exact UUID version is an implementation detail that should not be relied upon.

  • llGetAccel

    Returns a vector representing the acceleration of the object in the region's frame of reference.

  • llGetAgentInfo

    Returns an integer bitfield containing status information about the agent specified by id (such as AGENT_FLYING, AGENT_ATTACHMENTS, AGENT_SITTING, etc.).

  • llGetAgentLanguage

    Returns a string representing the language code of the preferred interface language set by the avatar.

  • llGetAgentList

    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.

  • llGetAgentSize

    Returns a vector representing the estimated bounding box size of the specified avatar, or ZERO_VECTOR if they are not in the same region.

  • llGetAlpha

    Returns a float representing the Blinn-Phong alpha (transparency) of face. If face is ALL_SIDES, returns the mean average of all faces.

  • llGetAndResetTime

    Returns the elapsed script time in seconds as a float, then resets the script timer to zero.

  • llGetAnimation

    Returns a string representing the name of the currently playing locomotion animation for the specified avatar.

  • llGetAnimationList

    Returns a list of keys (UUIDs) representing all active animations currently playing on the specified avatar.

  • llGetAnimationOverride

    Returns a string representing the name of the animation currently overriding the specified anim_state. Requires the PERMISSION_OVERRIDE_ANIMATIONS or PERMISSION_TRIGGER_ANIMATION runtime permission.

  • llGetAttached

    Returns the integer attachment point (an ATTACH_* constant) that the object is attached to, or 0 if it is unattached or pending detachment.

  • llGetAttachedList

    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.

  • llGetAttachedListFiltered

    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.

  • llGetBoundingBox

    Returns the bounding box of object (including any linked prims) relative to its root prim in local coordinates, formatted as [ (vector) min_corner, (vector) max_corner ].

  • llGetCameraAspect

    Returns a float representing the camera's current aspect ratio (width/height) of the agent who granted PERMISSION_TRACK_CAMERA. Returns 0.0 if permissions are not granted.

  • llGetCameraFOV

    Returns a float representing the camera's current field of view (FOV) in radians of the agent who granted PERMISSION_TRACK_CAMERA. Returns 0.0 if permissions are not granted.

  • llGetCameraPos

    Returns a vector representing the camera's current position in region coordinates of the agent who granted PERMISSION_TRACK_CAMERA. Returns ZERO_VECTOR if permissions are not granted.

  • llGetCameraRot

    Returns a rotation representing the camera's current orientation of the agent who granted PERMISSION_TRACK_CAMERA. Returns ZERO_ROTATION if permissions are not granted.

  • llGetCenterOfMass

    Returns the vector position (in region coordinates) of the center of mass. Returns the individual child prim's center of mass if called from a child, or the entire linkset's center of mass if called from the root.

  • llGetClosestNavPoint

    Returns a list containing the closest vector position on the navigation mesh (navmesh) to the specified point (expressed in region-local space), or an empty list if none is found. Configured using options.

  • llGetColor

    Returns the Blinn-Phong RGB color vector of face (values between 0.0 and 1.0). If face is ALL_SIDES, returns the mean average of all faces.

  • llGetCreator

    Returns the key (UUID) of the prim's original creator.

  • llGetDate

    Returns a string representing the current date in the UTC time zone in the format 'YYYY-MM-DD'.

  • llGetDayLength

    Returns an integer representing the number of seconds in the environmental day cycle applied to the current parcel.

  • llGetDayOffset

    Returns an integer representing the offset duration (in seconds) added to calculate the current environmental time on this parcel.

  • llGetDisplayName

    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).

  • llGetEnergy

    Returns a float representing the remaining physics energy of the object as a percentage (0.0 to 1.0) of its maximum capacity.

  • llGetEnv

    Returns a string containing the requested regional data specified by name.

  • llGetEnvironment

    Returns a list containing the current environment parameters for the parcel or region at pos, retrieved in the order specified by params.

  • llGetExperienceDetails

    Returns a list of details for the specified experience_id, formatted as [string experience_name, key owner_id, key experience_id, integer state, string state_message, key group_id].

  • llGetExperienceErrorMessage

    Returns a text description of the specified experience error code, or a description of XP_ERROR_UNKNOWN_ERROR if the error is invalid.

  • llGetForce

    Returns a vector representing the constant force currently applied to the object (if the object is physical).

  • llGetFreeMemory

    Returns an integer representing the number of free bytes of memory currently available to the script.

  • llGetFreeURLs

    Returns an integer representing the number of available HTTP URLs (remaining for the owner if the object is attached, or for the region if unattached).

  • llGetGameControlMode

    Returns a GAME_CONTROL_MODE_* integer indicating the current game-control mode for the avatar specified by id.

  • llGetGameControlModeAxes

    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.

  • llGetGameControlModeButtons

    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.

  • llGetGeometricCenter

    Returns a vector representing the geometric center of the object relative to its root prim.

  • llGetGMTclock

    Returns a float representing the time in seconds since midnight GMT (truncated to whole seconds).

  • llGetHealth

    Returns a float representing the current health of the avatar or object specified by id.

  • llGetHTTPHeader

    Returns a string representing the value of the specified header associated with the HTTP request_id.

  • llGetInventoryAcquireTime

    Returns the time when the item was placed in the prim's inventory, as a UTC timestamp string of the form "YYYY-MM-DDThh:mm:ssZ"

  • llGetInventoryCreator

    Returns the key (UUID) of the creator of the specified inventory item.

  • llGetInventoryDesc

    Returns the description string of the specified inventory item.

  • llGetInventoryKey

    Returns the key (UUID) of the specified inventory item.

  • llGetInventoryName

    Returns the name of the inventory item of the specified type (INVENTORY_*) at the specified inventory index.

  • llGetInventoryNumber

    Returns the count of items of the specified type (INVENTORY_*) in the prim's inventory.

  • llGetInventoryPermMask

    Returns the specified item's permission flags for the specified group.

  • llGetInventoryType

    Returns an integer representing the INVENTORY_* type of the named inventory item.

  • llGetKey

    Returns the key (UUID) of the prim containing the script.

  • llGetLandOwnerAt

    Returns the key (UUID) of the land owner at the vector pos, or NULL_KEY if the land is public.

  • llGetLinkKey

    Returns the key (UUID) of the linked prim or avatar specified by link.

  • llGetLinkMedia

    Returns a list containing the media parameters of the specified face on the linked prim link, retrieved in the order requested by params.

  • llGetLinkName

    Returns a string containing the name of the linked prim specified by link.

  • llGetLinkNumber

    Returns the integer link number of the prim containing the script (0 for unlinked, 1 for the root, and 2+ for children).

  • llGetLinkNumberOfSides

    Returns an integer representing the number of sides (faces) of the linked prim specified by link.

  • llGetLinkPrimitiveParams

    Returns a list of primitive parameters requested in params for the linked prim specified by link (equivalent to llGetPrimitiveParams).

  • llGetLinkSitFlags

    Returns an integer representing the active sit flags currently set on the linked prim specified by link.

  • llGetListEntryType

    Returns an integer representing the variable type (TYPE_*) of the list entry at index in the list src.

  • llGetListLength

    Returns an integer representing the total number of elements in the list src.

  • llGetLocalPos

    Returns a position vector relative to the root prim. If called from the root prim, it returns the global region position (or the position relative to the attachment point if attached).

  • llGetLocalRot

    Returns a rotation representing the local orientation of a child prim relative to the root prim, or the object's overall rotation if called from the root.

  • llGetMass

    Returns a float representing the mass of the object (in lindograms). Returns the total linkset mass if called from the root, or the individual prim's mass if called from a child prim. Returns the wearer's mass if inside an attachment.

  • llGetMassMKS

    Returns a float representing the mass of the object in kilograms. Functionally identical to llGetMass except for using MKS (metric) units.

  • llGetMaxScaleFactor

    Returns a float representing the maximum scale factor that can be applied to the object via llScaleByFactor without violating size or linkability limits.

  • llGetMemoryLimit

    Returns an integer representing the maximum memory limit (in bytes) that the script is allowed to allocate.

  • llGetMinScaleFactor

    Returns a float representing the minimum scale factor that can be applied to the object via llScaleByFactor without violating size limits.

  • llGetMoonDirection

    Returns a normalized vector representing the current direction of the parcel's moon, taking altitude into account. Falls back to the region's moon direction if no custom parcel environment is set.

  • llGetMoonRotation

    Returns a rotation representing the orientation applied to the moon on the current parcel and altitude track. Falls back to the region's moon rotation if no custom parcel environment is set.

  • llGetNextEmail

    Requests the next queued email via the email event. Emails must 1. Be sent to `{ll.GetKey()}@lsl.secondlife.com` 2. Be sent from the specified sender Address (or any address if blank) 3. Have the specified subject Subject (or any subject if blank)

  • llGetNotecardLine

    Asynchronously requests the line index line of the notecard name from the dataserver. Returns a key query handle for the dataserver event, which will return 'EOF' when reaching past the end of the notecard.

  • llGetNotecardLineSync

    Synchronously reads the line index line of the notecard name from the region's cache, immediately returning its text without raising a dataserver event. Returns 'NAK' if not cached or 'EOF' if out of bounds.

  • llGetNumberOfNotecardLines

    Asynchronously requests the total line count of the notecard name. Returns a key query handle for the dataserver event.

  • llGetNumberOfPrims

    Returns an integer representing the total number of prims and seated avatars in the linkset containing the script.

  • llGetNumberOfSides

    Returns an integer representing the total number of sides (faces) of the prim containing the script.

  • llGetObjectAnimationNames

    Returns a list of strings representing the names or UUIDs of all active animations currently playing on the object.

  • llGetObjectDesc

    Returns a string containing the description of the specific prim containing the script.

  • llGetObjectDetails

    Returns a list containing the requested parameters of the specified avatar or object id, retrieved in the order requested by params.

  • llGetObjectLinkKey

    Returns the key (UUID) of the linked child prim specified by link within the linkset identified by object_id.

  • llGetObjectMass

    Returns a float representing the mass of the avatar or object specified by id.

  • llGetObjectName

    Returns a string containing the name of the specific prim containing the script.

  • llGetObjectPermMask

    Returns the script's object's permission flags for the specified group.

  • llGetObjectPrimCount

    Returns an integer representing the total number of prims in the object containing the specified prim.

  • llGetOmega

    Returns a vector representing the physical rotation (angular velocity) of the object in radians per second.

  • llGetOwner

    Returns the key (UUID) of the object's current owner.

  • llGetOwnerKey

    Returns the key (UUID) of the owner of the prim specified by id.

  • llGetParcelDetails

    Returns a list containing the requested parcel details specified by params (retrieved in the same order) for the parcel at the vector pos.

  • llGetParcelFlags

    Returns an integer bitfield of parcel flags (PARCEL_FLAG_*) for the parcel at the position pos.

  • llGetParcelMaxPrims

    Returns an integer representing the maximum combined land impact (prim limit) allowed for objects on the parcel at pos, determined either for the single parcel or sim-wide based on sim_wide.

  • llGetParcelMusicURL

    Returns a string containing the parcel's streaming music (audio) URL. The object owner must also be the land owner (or share the same group deeding).

  • llGetParcelPrimCount

    Returns an integer representing the total land impact of objects on the parcel at pos in the specified category. If sim_wide is TRUE, returns combined usage for all regional parcels owned by the parcel owner; if FALSE, returns usage for only the specified parcel.

  • llGetParcelPrimOwners

    Returns a list of up to 100 strides (formatted as [key owner, integer land_impact]) representing owners of objects on the parcel at pos, sorted by owner key. Requires owner-like permissions for the parcel and the script owner's presence in the region.

  • llGetPermissions

    Returns an integer bitfield representing the permissions (PERMISSION_*) currently granted to the script.

  • 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.

  • llGetPhysicsMaterial

    Returns a list of the format [float gravity_multiplier, float restitution, float friction, float density] detailing the physical characteristics of the object.

  • llGetPos

    Returns a vector representing the current position of the object in region coordinates.

  • llGetPrimitiveParams

    Returns a list of primitive attribute values matching the requested params list.

  • llGetPrimMediaParams

    Returns a list containing the media parameters of the specified face, retrieved in the order requested by params. Returns an empty list if no media exists on the face.

  • llGetRegionAgentCount

    Returns an integer representing the current number of avatars in the region.

  • llGetRegionCorner

    Returns a vector (in meters) representing the global grid coordinates of the south-west corner of the current region (Z component is always 0.0).

  • llGetRegionDayLength

    Returns an integer representing the total number of seconds in the region-wide day cycle.

  • llGetRegionDayOffset

    Returns an integer representing the offset duration (in seconds) added to calculate the current environmental time for the region.

  • llGetRegionFlags

    Returns an integer bitfield representing the region flags (REGION_FLAG_*) currently enabled for the region containing the object.

  • llGetRegionFPS

    Returns a float representing the average region simulator frames per second (FPS).

  • llGetRegionMoonDirection

    Returns a normalized vector representing the current direction of the region's moon, taking altitude into account.

  • llGetRegionMoonRotation

    Returns a rotation representing the orientation applied to the moon at the region level, taking altitude track into account.

  • llGetRegionName

    Returns a string containing the name of the current region.

  • llGetRegionSunDirection

    Returns a normalized vector representing the current direction of the region's sun, taking altitude into account.

  • llGetRegionSunRotation

    Returns a rotation representing the orientation applied to the sun at the region level, taking altitude track into account.

  • llGetRegionTimeDilation

    Returns a float representing the current physics time dilation of the region, ranging from 0.0 (full dilation / slow) to 1.0 (no dilation / real-world speed).

  • llGetRegionTimeOfDay

    Returns a float with subsecond precision representing the elapsed seconds since region environmental midnight or region uptime (whichever is smaller). If the region's sun position is fixed, returns region uptime.

  • llGetRenderMaterial

    Returns a string representing the render material on face (returns the inventory name if it is in the prim's inventory, or its key UUID otherwise).

  • llGetRootPosition

    Returns a vector representing the position (in region coordinates) of the root prim of the linkset containing the script.

  • llGetRootRotation

    Returns a rotation representing the orientation (relative to the region) of the root prim of the linkset containing the script.

  • llGetRot

    Returns a rotation representing the prim's orientation relative to the region's axes.

  • llGetScale

    Returns a vector representing the physical scale (dimensions in meters) of the prim containing the script.

  • llGetScriptName

    Returns a string containing the name of the script calling this function.

  • llGetScriptState

    Returns a boolean integer indicating whether the specified script in the prim's inventory is running (returns TRUE if running, FALSE otherwise).

  • llGetSimStats

    Returns a float containing the value of the requested region statistic specified by stat_type.

  • llGetSimulatorHostname

    Returns a string containing the hostname of the server machine running the script (e.g., 'sim225.agni.lindenlab.com').

  • llGetSPMaxMemory

    Returns an integer representing the maximum memory (in bytes) used by the script while the memory profiler was last active (only valid after using PROFILE_SCRIPT_MEMORY).

  • llGetStartParameter

    Returns an integer representing the start/rez parameter passed to the object on creation (returns 0 if rezzed by an agent).

  • llGetStartString

    Returns the initialization string passed to the object's root prim on rez with llRezObjectWithParams (via REZ_PARAM_STRING; returns an empty string if rezzed by an agent).

  • llGetStaticPath

    Returns a list of position vectors representing pathfinding waypoints between start and end on the static navmesh for a character of the specified radius. Ignores movable obstacles and can be used in any region regardless of dynamic pathfinding status.

  • llGetStatus

    Returns a boolean integer indicating whether the specified status flag status is enabled for the object.

  • llGetSubString

    Returns a copy of the substring from src within the inclusive codepoint range start_index..end_index. Negative indices count backward from the end of the string. If start_index is greater than end_index, the substring is the excluded range.

  • llGetSunDirection

    Returns a normalized vector representing the current direction of the parcel's sun, taking altitude into account. Falls back to the region's sun direction if no custom parcel environment is set.

  • llGetSunRotation

    Returns a rotation representing the orientation applied to the sun on the current parcel and altitude track. Falls back to the region's sun rotation if no custom parcel environment is set.

  • llGetTexture

    Returns a string representing the Blinn-Phong diffuse texture on face (returns the inventory name if it is a texture in the prim's inventory, or its key UUID otherwise).

  • llGetTextureOffset

    Returns a vector containing the texture offsets of face in the X (horizontal U) and Y (vertical V) components (Z is unused).

  • llGetTextureRot

    Returns a float representing the texture rotation angle (in radians) on face.

  • llGetTextureScale

    Returns a vector containing the texture scales of face in the X and Y components (Z is unused).

  • llGetTime

    Returns a float representing the elapsed script time in seconds with subsecond precision (since the script started, was reset, or since the last call to llResetTime or llGetAndResetTime).

  • llGetTimeOfDay

    Returns a float with subsecond precision representing the elapsed seconds since parcel environmental midnight or region uptime (whichever is smaller). If the parcel's sun position is fixed, returns region uptime.

  • llGetTimestamp

    Returns a string containing the current date and time in the UTC time zone formatted as an ISO 8601 timestamp ('YYYY-MM-DDThh:mm:ss.ff..fZ').

  • llGetTorque

    Returns a vector representing the physical torque force currently acting on the object (if the object is physical).

  • llGetUnixTime

    Returns an integer representing the current Unix timestamp (the number of seconds elapsed since 00:00:00 Jan 1, 1970 UTC).

  • llGetUsedMemory

    Returns an integer representing the total number of bytes of memory currently used by the script (non-Mono scripts always return 16,384 bytes).

  • llGetUsername

    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 (use llRequestUsername if the avatar is absent).

  • llGetVel

    Returns a vector representing the velocity of the object (in meters per second) relative to the global region coordinates. For physical objects, returns the velocity of its center of mass.

  • llGetVisualParams

    Returns a list containing the values of the visual parameters requested in params for the agent specified by agentid.

  • llGetWallclock

    Returns a float representing the time in seconds since midnight Pacific Time (PST/PDT), which is equivalent to Second Life Time (SLT) truncated to whole seconds.

  • llGiveAgentInventory

    Gives the specified inventory items to the agent as a new folder named folder, as permitted by the permissions system. Customizes the transfer using options.

  • llGiveInventory

    Gives the specified inventory item to the target, as permitted by the permissions system. The target can be any agent or an object located in the same region.

  • llGiveInventoryList

    Gives the list of inventory items to target as a new folder named folder. If target is an object, the items are passed directly into its inventory and no folder is created. The target must be an agent or an object in the same region.

  • llGiveMoney

    Transfers the specified amount of L$ from the script owner to the destination avatar. Silently fails if the PERMISSION_DEBIT permission has not been granted. Returns 0 (use llTransferLindenDollars to match transactions to transaction_result events).

  • llGodLikeRezObject

    Rezzes an object directly from a UUID specified by id at the position pos, provided the owner has the god-bit set.

  • llGround

    Returns a float representing the ground height directly below the prim's position offset by the vector offset.

  • llGroundContour

    Returns a vector representing the ground contour direction (the direction with no change in elevation) directly below the prim's position offset by the vector offset.

  • llGroundNormal

    Returns a vector representing the ground surface normal vector directly below the current position offset by the vector offset.

  • llGroundRepel

    Critically damps the object's vertical motion to height (using critical damping timescale tau) if it is within height * 0.5 of the terrain (or water level if water is TRUE). Only works on physics-enabled objects; do not use with vehicles.

  • llGroundSlope

    Returns a vector representing the ground slope directly below the prim's position offset by the vector offset.

  • llHash

    Returns an integer representing the 32-bit hash value of the string val (returns 0 if the string is empty).

  • llHMAC

    Returns a Base64-encoded HMAC hash of msg using the secret key private_key and the specified digest algorithm (md5, sha1, sha224, sha256, sha384, or sha512).

  • llHTTPRequest

    Sends an HTTP request to the specified url containing body and configured via parameters. Raises an http_response event and returns a key query handle identifying the request.

  • llHTTPResponse

    Responds to the incoming HTTP request identified by request_id with the HTTP status code status and the payload body.

  • llInsertString

    Returns a copy of dst with src inserted at the given codepoint index.

  • llInstantMessage

    Sends an instant message containing msg to the agent identified by their key.

  • llIntegerToBase64

    Returns an 8-character Base64 string representing the big-endian encoded value of number.

  • llIsFriend

    Returns TRUE if agent_id and the owner of the script are friends, and FALSE otherwise.

  • llIsLinkGLTFMaterial

    Checks the specified face on the linked prim link. Returns TRUE if the face material is a PBR render material, or FALSE if it uses Blinn-Phong diffuse textures.

  • llJson2List

    Parses the JSON string src and returns a list representing its top-level elements.

  • llJsonGetValue

    Parses the JSON string json and returns the value found by traversing the specified path of specifiers as a string.

  • llJsonSetValue

    Returns a new JSON string representing json with the target located at specifiers set to value. Supports JSON_APPEND to append elements. Writing JSON_DELETE deletes the target. Overwriting array bounds or setting non-array levels with array indices returns JSON_INVALID.

  • llJsonValueType

    Parses the JSON string json and returns the JSON type constant (JSON_*) representing the value found at specifiers.

  • llKey2Name

    Returns a string containing the name of the prim or avatar specified by id. The target must be a valid, rezzed entity in the current region, otherwise an empty string is returned. Avatars return their legacy name.

  • llKeyCountKeyValue

    Starts an asynchronous transaction requesting the total count of keys in the experience data store. Returns a key query handle for the dataserver event.

  • llKeysKeyValue

    Starts an asynchronous transaction to retrieve count keys from the experience data store starting at the zero-based index first. Returns a key query handle for the dataserver event. Fails with XP_ERROR_KEY_NOT_FOUND if out of bounds.

  • llLinear2sRGB

    Returns a sRGB colorspace vector converted from the linear RGB colorspace argument.

  • llLinkAdjustSoundVolume

    Adjusts the volume of the currently playing sound attached to the linked prim link (has no effect on sounds started with llTriggerSound).

  • llLinkParticleSystem

    Creates or updates a particle system on the linked prim link based on the list of rules. An empty list removes the particle system.

  • llLinkPlaySound

    Plays the specified sound on the linked prim link (once or looping) at volume. Only one sound can be attached to a prim at a time; new attachments or calling llStopSound stops previous playback. Controlled by flags.

  • llLinksetDataAvailable

    Returns an integer representing the number of bytes available/remaining in the linkset's datastore.

  • llLinksetDataCountFound

    Returns the total count of keys in the linkset datastore that match the regular expression pattern.

  • llLinksetDataCountKeys

    Returns an integer representing the total number of unique keys stored in the linkset's datastore.

  • llLinksetDataDelete

    Deletes the unprotected key-value pair specified by name from the linkset's datastore, triggering a linkset_data event.

  • llLinksetDataDeleteFound

    Deletes all keys in the datastore matching the regular expression pattern. Returns a list [num_deleted, num_failed_protected]. Decrypts and deletes protected keys if matching pass is provided.

  • llLinksetDataDeleteProtected

    Deletes the protected key-value pair specified by name from the linkset's datastore using the passphrase pass, triggering a linkset_data event.

  • llLinksetDataFindKeys

    Returns an alphabetically sorted list of up to count keys from the datastore that match the regular expression pattern, starting at index start (returns all matching keys if count < 1).

  • llLinksetDataListKeys

    Returns an alphabetically sorted list of up to count keys from the datastore, starting at index start (returns all keys if count < 1).

  • llLinksetDataRead

    Reads and returns the string value corresponding to key name from the linkset's datastore.

  • llLinksetDataReadProtected

    Reads and returns the string value of the protected key name from the linkset's datastore using the passphrase pass.

  • llLinksetDataReset

    Erases all key-value pairs stored in the linkset's datastore, triggering a linkset_data event (with LINKSETDATA_RESET) in all scripts in the linkset.

  • llLinksetDataWrite

    Creates or updates an unprotected key-value pair (name and value) in the linkset's datastore. Returns an integer success or failure code.

  • llLinksetDataWriteProtected

    Creates or updates a protected key-value pair (name and value) in the linkset's datastore using the passphrase pass. Returns an integer success or failure code.

  • llLinkSetSoundQueueing

    Enables or disables sound queuing on the linked prim link. When set to TRUE, sounds will queue and play in sequence.

  • llLinkSetSoundRadius

    Limits the audibility radius of attached and triggered scripted sounds to distance radius (in meters) around the linked prim link.

  • llLinkSitTarget

    Sets the sit target position (offset) and orientation (rot) for the linked prim link, relative to the prim's own position and rotation. Clear by setting offset to <0.0, 0.0, 0.0>.

  • llLinkStopSound

    Stops the playback of any currently playing attached sound on the linked prim link.

  • llList2CSV

    Returns a string of comma-separated values taken in order from the list src.

  • llList2Float

    Returns the float value at index in the list src. Returns 0.0 if the index is out of bounds or if the value cannot be type-cast.

  • llList2Integer

    Returns the integer value at index in the list src. Returns 0 if the index is out of bounds or if the value cannot be type-cast.

  • llList2Json

    Converts the list values into a JSON string of the specified type (either a JSON_ARRAY or a JSON_OBJECT). Returns JSON_INVALID if an error is encountered.

  • llList2Key

    Returns the key (UUID) value at index in the list src. Returns a null string/key if the index is out of bounds or if the value cannot be type-cast.

  • llList2List

    Returns a new list containing the subset of entries from src within the inclusive range specified by the start and end indices. Negative indices count backward from the end.

  • llList2ListSlice

    Returns a list containing the slice_index'th element of every stride within the inclusive range from start to end in the strided list src. Stride must be a positive integer.

  • llList2ListStrided

    Returns a new list containing the first element of every stride in the strided list src within the inclusive range from start to end.

  • llList2Rot

    Returns the rotation value at index in the list src. Returns ZERO_ROTATION if the index is out of bounds or if the value cannot be type-cast.

  • llList2String

    Returns the string value at index in the list src. Returns an empty string if the index is out of bounds.

  • llList2Vector

    Returns the vector value at index in the list src. Returns ZERO_VECTOR if the index is out of bounds or if the value cannot be type-cast.

  • llListen

    Creates a listener on channel from name and id for msg. Returns an integer listener handle used to control or remove the listener. Empty strings or NULL_KEY filters do not filter on those parameters.

  • llListenControl

    Enables or disables the listener specified by the integer handle. If active is TRUE, the listener is activated; if FALSE, it is deactivated.

  • llListenRemove

    Completely removes the listener specified by the integer handle.

  • llListFindList

    Returns the integer index of the first instance of list test within the list src (returns -1 if not found).

  • llListFindListNext

    Returns the integer index of the specified instance of list test within the list src (returns -1 if not found).

  • llListFindStrided

    Returns the integer index of the first instance of list test in the strided list src within the range from start to end (stepping through by stride). Returns -1 if not found.

  • llListInsertList

    Returns a new list containing all elements of dest with the elements of src inserted starting at index start. Does not modify dest itself.

  • llListRandomize

    Returns a randomized copy of the list src by blocks of size stride. If the list length is not perfectly divisible by stride, no randomization occurs.

  • llListReplaceList

    Returns a copy of the list dest with the inclusive range from start to end removed, and the elements of src inserted in its place at start.

  • llListSort

    Returns a copy of the list src, sorted into blocks of stride in ascending order (if ascending is TRUE) or descending order (if FALSE). Only works if the first entry of each block shares the same datatype.

  • llListSortStrided

    Returns a copy of the list src sorted into blocks of stride by the element at stride_index in each block. Sorted in ascending order (if ascending is TRUE) or descending order (if FALSE).

  • llListStatistics

    Returns the numeric result of the statistical aggregate function operation (a LIST_STAT_* constant) on the numeric list src.

  • llLoadURL

    Shows a dialog box displaying message to the avatar avatar offering to open the specified url. Clicking yes launches the URL in their default web browser.

  • llLog

    Returns natural (base e) logarithm of val. If negative, return 0.0.

  • llLog10

    Returns base-10 (common) logarithm of val. If negative, return 0.0.

  • llLookAt

    Causes the object to orient its positive Z-axis (up axis) toward the target vector, keeping its positive X-axis (forward axis) below the horizon. Tracks target until llStopLookAt is called or strength is set to 0.0.

  • llLoopSound

    Plays the attached sound looping indefinitely at the specified volume. Only one sound can be attached to a prim at a time; new loops adjust the volume of the currently playing sound without restarting it.

  • llLoopSoundMaster

    Plays the attached sound looping indefinitely at the specified volume and declares it a Sync Master, forcing slave sounds to synchronize with it.

  • llLoopSoundSlave

    Plays the attached sound looping indefinitely at the specified volume, synchronized to the most audible active Sync Master in range.

  • llManageEstateAccess

    Adds or removes agents from the estate's access or ban lists, or groups from the estate's group access list, specified by the action. Returns TRUE if successful, or FALSE if throttled, if the action/ID is invalid, or if the script owner lacks estate management rights.

  • llMapBeacon

    Displays an in-world beacon and optionally opens the world map for the avatar touching or wearing the object, centered on region_name with pos highlighted. Only works for attached scripts or during touch events.

  • llMapDestination

    Opens the world map for the avatar touching or wearing the object, centered on simname with pos highlighted. Only works for attached scripts or during touch events. Note: look_at currently has no effect.

  • llMD5String

    Returns a string of 32 hex characters representing the MD5 checksum of src salted with nonce (formatted as ':' + nonce).

  • llMessageLinked

    Triggers a link_message event, sending num, str, and id to the scripts in the prim(s) specified by link to allow scripts within the same object to communicate.

  • llMinEventDelay

    Sets the minimum delay time between events being handled (minimums and defaults vary by event type).

  • llModifyLand

    Modifies the terrain using the specified land action and brush size (0, 1, or 2, corresponding to 2m x 2m, 4m x 4m, or 8m x 8m).

  • llModPow

    Returns base raised to the power exponent, modulo modulus (i.e., (b^e)%m). All inputs are wrapped to unsigned 32-bit integer range [0..4294967295]. Output is wrapped to signed 32-bit integer range [-2147483648..2147483647]. Will never overflow, unlike (b^e), which can overflow to inf.

  • llMoveToTarget

    Critically damps the physical object's motion to position target in tau seconds. Setting tau to 0.0 stops the critical damping; recommended tau values are greater than 0.2.

  • llName2Key

    Requests the key (UUID) of the avatar name in the current region. Returns NULL_KEY if no matching agent is present. Formats are 'First Last' or 'first.last' (assumes 'Resident' if last name is omitted; case-insensitive).

  • llNavigateTo

    Directs a pathfinding character to navigate to the position pos (located in the current or adjacent regions) using the parameters specified in options.

  • llOffsetTexture

    Sets the texture horizontal (u) and vertical (v) offsets for the chosen face. If face is ALL_SIDES, offsets all faces.

  • llOpenFloater

    Opens the specified viewer floater_name loaded with url and configured via params. Returns an integer error code, or 0 if successful.

  • llOrd

    Returns the ordinal (Unicode copepoint integer) of the character at index in the string val. Negative indices count backward from the end of the string.

  • llOverMyLand

    Returns TRUE if the avatar or object specified by key id is over land owned by the script owner, or FALSE otherwise.

  • llOwnerSay

    Sends the chat message msg privately to the object owner (the owner must be currently in the same region for the message to be received).

  • llParcelMediaCommandList

    Controls the playback of movies and other multimedia resources on a parcel or for an agent, using the PARCEL_MEDIA_COMMAND_* settings specified in commandList.

  • llParcelMediaQuery

    Queries the media properties of the parcel containing the script, returning a list of values in the order requested by query. Only works if the object is owned by the landowner or deeded to the land's group.

  • llParseString2List

    Breaks the string src into a list of substrings, discarding any separators, keeping spacers, and omitting any empty null values. separators and spacers accept up to 8 string entries each.

  • llParseStringKeepNulls

    Breaks the string src into a list of substrings, discarding separators and keeping spacers, while preserving empty null values (unlike llParseString2List). separators and spacers accept up to 8 string entries each.

  • llParticleSystem

    Creates or updates a particle system on the prim containing the script based on rules. An empty list removes the particle system.

  • llPassCollisions

    Sets the pass-collisions attribute. If pass is TRUE, collision events are passed from child prims to the root; if FALSE (default), they only trigger events in the affected child prim.

  • llPassTouches

    Sets the pass-touches attribute. If pass is TRUE, touch events are passed from child prims to the root; if FALSE (default), they only trigger events in the affected child prim.

  • llPatrolPoints

    Directs a pathfinding character to patrol sequentially through the coordinates specified in patrolPoints, configured by options.

  • llPlaySound

    Plays the specified sound once at volume, attached to the object. Only one sound can be attached to a prim at a time; new sounds or calling llStopSound stops previous playback. A second call with the same sound adjusts the volume without restarting it.

  • llPlaySoundSlave

    Plays the attached sound once at volume, synchronized to the next loop point of the most audible active Sync Master.

  • llPow

    Returns base raised to the power exponent. If result is imaginary, returns NaN.

  • llPreloadSound

    Causes nearby viewers in range to preload the specified sound from the object's inventory to prevent playback delays.

  • llPursue

    Directs a pathfinding character to pursue and chase target, configured by the parameters specified in options.

  • llPushObject

    Applies physical impulse (force) and ang_impulse (rotational force) to the specified target avatar or object.

  • llReadKeyValue

    Starts an asynchronous transaction to read the value associated with key k in the experience. Returns a key query handle for the dataserver event. Fails with XP_ERROR_KEY_NOT_FOUND if the key does not exist.

  • llRegionSay

    Broadcasts the message msg to all scripts listening on channel Channel within the region. PUBLIC_CHANNEL (0) cannot be used, so, only scripts can receive the message.

  • llRegionSayTo

    Sends the message msg on Channel privately to the targeted agent or object (if within the region). If target is an agent and channel is non-zero, the message can also be heard by any attachments worn by the avatar.

  • llReleaseControls

    Stops taking inputs (previously acquired via llTakeControls) from the avatar, dequeuing any remaining control events and revoking the PERMISSION_TAKE_CONTROLS permission.

  • llReleaseURL

    Releases the specified url (previously obtained via llRequestURL), rendering it no longer usable.

  • llRemoteLoadScriptPin

    Copies the script into target, setting it running (if running is TRUE) with the start_param, provided the script owner has modify permissions on target and target's PIN matches pin (set via llSetRemoteScriptAccessPin).

  • llRemoveFromLandBanList

    Removes the specified avatar from the land parcel's ban list.

  • llRemoveFromLandPassList

    Removes the specified avatar from the land parcel's pass/access list.

  • llRemoveInventory

    Permanently deletes the named inventory item from the prim's inventory.

  • llRemoveVehicleFlags

    Disables the specified vehicle flags (sets them to FALSE) using the bitwise mask flags.

  • llReplaceAgentEnvironment

    Replaces the region and parcel environment seen by the specified agent_id as part of an experience, transitioning the settings over transition seconds. Passing NULL_KEY or an empty string for environment restores defaults.

  • llReplaceEnvironment

    Replaces the environment on the parcel containing position (or the entire region if position is <-1.0, -1.0, -1.0>) for the specified track_no. Modifies day_length and day_offset if specified. Requires edit permissions on the parcel or estate management rights.

  • llReplaceSubString

    Returns a copy of src with count occurrences of pattern replaced by replacement_pattern. Setting count to 0 replaces all occurrences; positive counts process left-to-right, while negative counts process right-to-left.

  • llRequestAgentData

    Asynchronously requests the specified data category (DATA_*) about the agent id. Triggers a dataserver event with the results and returns a key query handle.

  • llRequestDisplayName

    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.

  • llRequestExperiencePermissions

    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 triggering experience_permissions or experience_permissions_denied.

  • llRequestInventoryData

    Asynchronously requests data for the named inventory item, triggering a dataserver event. Currently, only landmark items are supported (which return local region coordinates). Returns a key query handle.

  • llRequestPermissions

    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.

  • llRequestSecureURL

    Asynchronously requests one secure HTTPS (SSL, port 12043) URL for use by this object, triggering an http_request event. Returns a key query handle.

  • llRequestSimulatorData

    Asynchronously requests data (using a DATA_SIM_* constant) about the region. Triggers a dataserver event and returns a key query handle.

  • llRequestURL

    Asynchronously requests one HTTP URL for use by this script, triggering an http_request event. Returns a key query handle.

  • llRequestUserKey

    Asynchronously requests the Agent ID key (UUID) for the agent specified by their current or historical username, returning NULL_KEY if not found. Returns a key query handle for the dataserver event.

  • llRequestUsername

    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.

  • llResetAnimationOverride

    Resets the animation override for anim_state to its default value (use 'ALL' to reset all states). Requires the PERMISSION_OVERRIDE_ANIMATIONS permission.

  • llResetLandBanList

    Removes all blocked residents from the land parcel's ban list.

  • llResetLandPassList

    Removes all residents from the land parcel's access/pass list.

  • llResetOtherScript

    Resets the named script name in the prim's inventory.

  • llResetScript

    Resets the current script.

  • llResetTime

    Resets the script's elapsed time timer back to zero.

  • llReturnObjectsByID

    Returns objects specified by the list of UUIDs objects to their owners. Requires the PERMISSION_RETURN_OBJECTS permission, and the script owner must own the parcel or be an estate manager/region owner.

  • llReturnObjectsByOwner

    Returns objects owned by owner within the specified scope (parcel, parcel owner, or region). Requires the PERMISSION_RETURN_OBJECTS permission, and the script owner must own the parcel or be an estate manager/region owner.

  • llRezAtRoot

    Instantiates the named inventory object with the root prim at pos with velocity vel and rotation rot, passing start_param as the on_rez start parameter. The vel parameter is ignored if the rezzed object is non-physical.

  • llRezObject

    Instantiates the named inventory object with the bounding box centered at pos with velocity vel and rotation rot, passing param as the on_rez start parameter. The vel parameter is ignored if the rezzed object is non-physical.

  • llRezObjectWithParams

    Instantiates the named inventory object (defaulting to the rezzing prim's position unless REZ_POS is specified) using the initial set of parameters specified in options. Returns the key of the rezzed object, or a blank key on failure.

  • llRot2Angle

    Returns the angle, in radians, that q rotates.

  • llRot2Axis

    Returns the unit vector axis that q rotates around.

  • llRot2Euler

    Returns a vector of Euler angles (roll, pitch, yaw) of q. The angles will be in radians.

  • llRot2Fwd

    Returns the unit vector pointing toward positive X (forward) in the coordinate space of rotation q. Equivalent to <1, 0, 0> * q.

  • llRot2Left

    Returns the unit vector pointing toward positive Y (left) in the coordinate space of rotation q. Equivalent to <0, 1, 0> * q.

  • llRot2Up

    Returns the unit vector pointing toward positive Z (up) in the coordinate space of rotation q. Equivalent to <0, 0, 1> * q.

  • llRotateTexture

    Sets the texture rotation of face to the specified angle (in radians). If face is ALL_SIDES, rotates the texture on all faces.

  • llRotBetween

    Returns the shortest-path quaternion that rotates start_vec onto end_vec.

  • llRotLookAt

    Causes the object to smoothly rotate to target_direction with a force defined by strength and damping. A strength of 0.0 cancels the rotation target. Rotation is maintained until stopped with llStopLookAt.

  • llRotTarget

    Registers the rotation rot with a leeway tolerance error (in radians) as a target, triggering at_rot_target and not_at_rot_target events. Returns an integer handle to unregister the target via llRotTargetRemove.

  • llRotTargetRemove

    Removes the rotational target specified by the integer handle registered with llRotTarget.

  • llRound

    Returns val rounded to the nearest integer. Halfway values are rounded toward infinity.

  • llSameGroup

    Returns TRUE if the agent or object specified by uuid is in the same region (simulator) and shares the same active group as the prim containing the script; returns FALSE otherwise.

  • llSay

    Broadcasts the message msg to all scripts or agents listening on channel within llGetEnv("chat_range"), which is 20m on most regions. Agents listen on PUBLIC_CHANNEL (0) and DEBUG_CHANNEL (2147483647). All other channels are for script-to-script communication.

  • llScaleByFactor

    Attempts to uniformly resize the entire object by scaling_factor, maintaining size-position ratios of the prims. Fails if the linkset is physical, a pathfinding character, in keyframed motion, would exceed prim scale/linkability limits, or would overflow parcel capacity.

  • llScaleTexture

    Sets the diffuse texture horizontal u and vertical v scales (repeats) on the specified face of the prim. Setting face to ALL_SIDES updates all sides. Negative scale values flip the texture.

  • llScriptDanger

    Returns TRUE if the vector position pos is over public land, sandbox land, land restricting edit/build permissions, or land that disables outside scripts.

  • llScriptProfiler

    Enables or disables the script's profiling state using flags (supports PROFILE_SCRIPT_MEMORY on Mono, or PROFILE_NONE). Active profiling can significantly reduce script performance.

  • llSensor

    Performs a single scan from the prim's forward vector for name and id of type within radius meters and arc radians. Results trigger a sensor or no_sensor event. Passing empty filters (blank name, 0 type, or NULL_KEY id) disables that filter.

  • llSensorRemove

    Removes the periodic sensor previously configured by llSensorRepeat.

  • llSensorRepeat

    Sets up a repeating periodic scan every rate seconds for name and id of type within radius meters and arc radians of the forward vector. Results trigger sensor or no_sensor events.

  • llSetAgentEnvironment

    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.

  • llSetAgentRot

    Sets the rotation of the avatar to rot, controlled by flags.

  • llSetAlpha

    Sets the diffuse texture alpha (opacity) of face. If face is ALL_SIDES, applies to all faces. Values are clamped between 0.1 and 1.0 (where 1.0 is fully opaque).

  • llSetAngularVelocity

    Sets the angular velocity of a physical object to initial_omega (mass-independent). If local is TRUE, applied in local coordinates; if FALSE, applied in global coordinates. Has no effect on non-physical objects.

  • llSetAnimationOverride

    Overrides the default animation for anim_state with anim (which must be in the object's inventory or a built-in animation). Requires the PERMISSION_OVERRIDE_ANIMATIONS permission.

  • llSetBuoyancy

    Sets the buoyancy of a physical object (requires physics to be enabled). A value of 0.0 offers no buoyancy, < 1.0 sinks, 1.0 counteracts gravity, and > 1.0 rises.

  • llSetCameraAtOffset

    Sets the target offset vector (in local coordinates) that a seated avatar's camera will look at.

  • llSetCameraEyeOffset

    Sets the eye offset vector (in local coordinates) where a seated avatar's camera is positioned.

  • llSetCameraParams

    Sets multiple camera parameters simultaneously using the list of rules. Requires the PERMISSION_CONTROL_CAMERA runtime permission.

  • llSetClickAction

    Sets the action (a CLICK_ACTION_* flag) performed when an avatar left-clicks the prim.

  • llSetColor

    Sets the Blinn-Phong diffuse RGB color of face. If face is ALL_SIDES, applies the color to all faces.

  • llSetContentType

    Sets the 'Content-Type' header of subsequent HTTP server responses (via llHTTPResponse) for request_id using the specified content_type (a CONTENT_TYPE_* constant).

  • llSetDamage

    Sets the amount of damage delivered when this object hits an avatar. The object is immediately destroyed upon inflicting damage, and no collision event is triggered.

  • llSetEnvironment

    Overrides the environmental settings at position for a parcel (or region if position is <-1.0, -1.0, z>) using the parameters in params. Passing an empty params list removes previous overrides.

  • llSetForce

    Applies a constant linear force to a physical object. If local is TRUE, force is applied relative to local coordinates; if FALSE, applied relative to region coordinates.

  • llSetForceAndTorque

    Sets both the constant linear force and constant torque acting on a physical object. If local is TRUE, forces are applied in local coordinates; if FALSE, in global coordinates.

  • llSetGroundTexture

    Changes the painted terrain textures on the region based on changes. The script owner must have estate management rights. Returns an integer status.

  • llSetHoverHeight

    Critically damps the physical object's vertical movement to hover at height (above ground, or above water if water is TRUE) in tau seconds. Do not use with vehicles; call llStopHover to cancel.

  • llSetInventoryPermMask

    Sets the specified item's permission flags for the specified group.

  • llSetKeyframedMotion

    Smoothly moves a non-physical object between the positions, orientations, and times specified in the keyframes list, configured via options. Collisions with keyframed objects are ignored. An empty keyframes list terminates the motion.

  • llSetLinkAlpha

    Sets the Blinn-Phong alpha (transparency) of face on the linked prim link.

  • llSetLinkCamera

    Sets the camera eye position offset eye and looking-at position offset at for avatars who sit on the linked prim link.

  • llSetLinkColor

    Sets the Blinn-Phong diffuse RGB color of face on the linked prim link.

  • llSetLinkGLTFOverrides

    Sets or removes individual GLTF override parameters specified by params on face of the linked prim link.

  • llSetLinkMedia

    Sets the media parameters specified by params on face of the linked prim link without a script delay. Returns an integer STATUS_* flag detailing success or failure.

  • llSetLinkPrimitiveParamsFast

    Sets primitive parameters for the linked prim link according to rules with no built-in script sleep delay.

  • llSetLinkRenderMaterial

    Applies material (UUID or inventory name) to face of the linked prim link. Note: This clears most PRIM_GLTF_* properties on the face except for repeats, offsets, and rotation.

  • llSetLinkSitFlags

    Sets the sit target flags for the linked prim link inside the linkset.

  • llSetLinkTexture

    Applies texture (UUID or inventory name) to face of the linked prim link.

  • llSetLinkTextureAnim

    Animates the texture on face of the linked prim link by setting the scale and offset according to mode. Parameters sizex/sizey define frames, start defines the start frame/angle, length defines duration, and rate defines playback speed.

  • llSetLocalRot

    Sets the rotation of a child prim relative to its root prim using rot.

  • llSetMemoryLimit

    Requests that limit bytes are reserved for the script. Returns TRUE on success or FALSE on failure (has no effect in LSO).

  • llSetObjectDesc

    Sets the description of the prim containing the script to description (limited to 127 characters).

  • llSetObjectName

    Sets the name of the prim containing the script to name.

  • llSetObjectPermMask

    Sets the scripts's object's permission flags for the specified group.

  • llSetParcelForSale

    Sets the parcel the object is on for sale. If ForSale is TRUE, puts the land up for sale using Options (price, buyer, objects included). Setting ForSale to FALSE removes the parcel from sale. Requires parcel ownership and the PERMISSION_PRIVILEGED_LAND_ACCESS permission. Returns an error code or 0 if successful.

  • llSetParcelMusicURL

    Sets the streaming audio (music) URL for the parcel containing the object. The object owner must match the landowner or land group.

  • llSetPayPrice

    Suggests default amounts for the pay text input field price and the four payment dialog quick_pay_buttons when an avatar pays this object.

  • llSetPhysicsMaterial

    Configures the physical characteristics of an object. The mask bitfield specifies which of the other parameters (gravity_multiplier, restitution, friction, or density) should be applied to the object.

  • llSetPos

    Moves the non-physical object or prim toward the vector pos (up to 10m). If called in a child prim, pos is treated as root-relative; if called from the root prim, the entire object is moved.

  • llSetPrimMediaParams

    Sets the media parameters specified by params on the designated face of the prim. Returns an integer STATUS_* flag detailing success or failure.

  • llSetRegionPos

    Tries to move the entire object so that its root prim is within 0.1m of the vector position (underground positions are set to ground level). Returns TRUE on success or FALSE on failure.

  • llSetRemoteScriptAccessPin

    Sets the prim's remote script access PIN to pin (a non-zero value enables loading via llRemoteLoadScriptPin, while zero disables it).

  • llSetRenderMaterial

    Applies material (UUID or inventory name) to face of the prim. Note: This clears most PRIM_GLTF_* properties on the face except for repeats, offsets, and rotation.

  • llSetRot

    Sets the rotation of the prim to rot. If in a child prim, rot is treated as root-relative; if in the root prim of a non-physical object, rotates the entire object.

  • llSetScale

    Sets the physical scale (dimensions) of the prim containing the script to size.

  • llSetScriptState

    Sets the running state of the named script in the prim's inventory. If running is TRUE, the script is enabled; if FALSE, it is disabled.

  • llSetSitText

    Displays the string text instead of 'Sit' (or 'Sit Here') in the viewer's right-click context menu.

  • llSetSoundQueueing

    Sets whether attached sounds wait for the current sound to end before playing (enables queuing if queue is TRUE, disables if FALSE). The queue is one level deep.

  • llSetSoundRadius

    Limits the audibility radius of attached and triggered scripted sounds to distance radius.

  • llSetStatus

    Sets the object status attributes specified by status to value.

  • llSetText

    Displays floating text above the prim with the specified color vector and transparency alpha.

  • llSetTexture

    Applies the Blinn-Phong diffuse texture to face of the prim.

  • llSetTextureAnim

    Animates the texture on face of the prim by setting its scale and offset. mode defines options, sizex/sizey define frames, start defines the start frame/angle, length defines duration, and rate defines playback speed.

  • llSetTimerEvent

    Sets a timer to trigger a timer event periodically every sec seconds. Passing 0.0 stops further timer events.

  • llSetTorque

    Applies a constant torque rotational force to a physical object. If local is TRUE, torque is applied in local coordinates; if FALSE, applied in global coordinates.

  • llSetTouchText

    Displays the string text instead of 'Touch' in the right-click context menu.

  • llSetVehicleFlags

    Enables the vehicle flags specified in the Flags bitmask.

  • llSetVehicleFloatParam

    Sets the specified vehicle float parameter param to value.

  • llSetVehicleRotationParam

    Sets the specified vehicle rotation parameter param to rot.

  • llSetVehicleType

    Sets the vehicle physics preset type to one of the default vehicle types.

  • llSetVehicleVectorParam

    Sets the specified vehicle vector parameter param to vec.

  • llSetVelocity

    Sets the linear velocity of a physical object to velocity. If local is TRUE, velocity is treated as a local directional vector; if FALSE, as a global region directional vector. Has no effect on non-physical objects.

  • llSHA1String

    Returns a string of 40 hex characters representing the SHA-1 security hash of src.

  • llSHA256String

    Returns a string of 64 hex characters representing the SHA-256 security hash of src.

  • llShout

    Broadcasts the message msg to all scripts or agents listening on channel within llGetEnv("shout_range"), which is 100m on most regions. Agents listen on PUBLIC_CHANNEL (0) and DEBUG_CHANNEL (2147483647). All other channels are for script-to-script communication.

  • llSignRSA

    Returns the Base64-encoded RSA signature of msg using the PEM-formatted private_key and the specified digest algorithm (sha1, sha224, sha256, sha384, or sha512). Can be paired with llVerifyRSA to pass verifiable messages.

  • llSin

    Returns the sine of theta. Theta is in radians.

  • llSitOnLink

    Forces the avatar specified by agent_id (who must be participating in the experience) to sit on the sit target of the prim indicated by link. If occupied, searches down the linkset for an available sit target. Returns an integer.

  • llSitTarget

    Sets the sit target position (offset) and rotation (rot) relative to the prim's position and orientation. Clears the sit target if offset is ZERO_VECTOR.

  • llSleep

    Puts the script to sleep for sec seconds (at least until the next server-frame, ~0.02222 seconds). The script is inactive during this time. If sec is 0.0 or less, the script does not sleep.

  • llSqrt

    Returns the square root of val. If negative, return NaN.

  • llsRGB2Linear

    Returns a linear RGB colorspace vector converted from the sRGB colorspace argument.

  • llStartAnimation

    Starts the animation anim (inventory or built-in) on the avatar who granted the script the PERMISSION_TRIGGER_ANIMATION permission (automatically granted for attached or sat-on objects).

  • llStartObjectAnimation

    Starts the specified animation anim (inventory or built-in) on the rigged mesh object associated with the current script.

  • llStopAnimation

    Stops the specified animation anim (inventory, built-in, or UUID) on the avatar who granted the script the PERMISSION_TRIGGER_ANIMATION permission (automatically granted for attached or sat-on objects).

  • llStopHover

    Stops the hover behavior (such as that initiated by llSetHoverHeight).

  • llStopLookAt

    Stops causing the object to look at or point toward a target (canceling llLookAt or llRotLookAt).

  • llStopMoveToTarget

    Stops the critically damped movement of the object toward a target (canceling llMoveToTarget). Use llStopLookAt to stop rotational tracking.

  • llStopObjectAnimation

    Stops the specified animation anim (inventory, built-in, or UUID) on the rigged mesh object associated with the current script.

  • llStopSound

    Stops playback of the currently playing attached sound.

  • llStringLength

    Returns the number of unicode codepoints in the string.

  • llStringToBase64

    Returns the Base64 representation string of str, interpreting it as a UTF-8 byte sequence.

  • llStringTrim

    Returns a copy of the string src with leading, trailing, or both types of whitespace (including spaces, tabs, and line feeds) eliminated, according to the specified trim type.

  • llSubStringIndex

    Returns the codepoint index of the first occurrence of pattern inside the string source. Returns -1 if not found. No regex.

  • llTakeControls

    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 the PERMISSION_TAKE_CONTROLS runtime permission.

  • llTan

    Returns the tangent of theta. Theta is in radians.

  • llTarget

    Registers a positional target at position with a leeway radius range. This triggers at_target and not_at_target events. Returns an integer handle to unregister the target via llTargetRemove.

  • llTargetedEmail

    Sends an email to with the given subject subject and body msg to the target (which can designate the owner or creator of the object). The email will be sent from `{ll.GetKey()}@lsl.secondlife.com`.

  • llTargetOmega

    Applies a smooth client-side rotation around the local axis at a rate equal to spinrate multiplied by the magnitude of axis (in radians per second) with a force defined by gain. Set spinrate to 0.0 to cancel.

  • llTargetRemove

    Removes the positional target specified by the integer handle registered with llTarget.

  • llTeleportAgent

    Teleports the owning agent (who must grant PERMISSION_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.

  • llTeleportAgentGlobalCoords

    Teleports the owning agent (who must grant PERMISSION_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.

  • llTeleportAgentHome

    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).

  • llTextBox

    Opens an input text box dialog displaying msg to the agent. Submitting text chats the input string on channel as if said by the agent. The chat originates at the object's position, but uses the agent's name and UUID, so it can be heard as long as the agent is still in the region.

  • llToLower

    Returns a lowercase copy of the string src. Converts all unicode characters, not just ASCII.

  • llToUpper

    Returns an uppercase copy of the string src. Converts all unicode characters, not just ASCII.

  • llTransferLindenDollars

    Transfers amount of L$ from the script owner to the destination avatar, requiring the PERMISSION_DEBIT permission. Returns a key query handle matching the resulting transaction_result event.

  • llTransferOwnership

    Transfers ownership of the object (or a copy of it, depending on Flags) to the specified agent. Returns an integer indicating the success or failure of the transfer.

  • llTriggerSound

    Plays specified sound once at volume, centered at the object's current position but not attached (does not move with the object and cannot be stopped or adjusted). Does not affect attached sounds.

  • llTriggerSoundLimited

    Plays the specified sound once at volume, centered at the object but not attached, restricted to the axis-aligned bounding box defined by the coordinates top_north_east and bottom_south_west.

  • llUnescapeURL

    Returns a string representing the unescaped/decoded version of url, replacing '%20' with spaces and decoding raw UTF-8 characters.

  • llUnSit

    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.

  • llUpdateCharacter

    Updates settings for a pathfinding character using the parameters specified in options.

  • llUpdateKeyValue

    Starts an asynchronous transaction to update the key k to value v inside the experience datastore. If checked is TRUE, the update fails with XP_ERROR_RETRY_UPDATE unless the existing value matches original_value.

  • llVecDist

    Returns a float representing the undirected, non-negative distance between vectors vec_a and vec_b.

  • llVecMag

    Returns the magnitude (geometric length) of vec.

  • llVecNorm

    Returns the normalized unit vector pointing the same direction as vec. If <0, 0, 0>, return <0, 0, 0>.

  • llVerifyRSA

    Returns TRUE if the Base64-formatted signature is verified as valid for the message msg when using the digest algorithm and public_key. Returns FALSE otherwise.

  • llVolumeDetect

    If detect is TRUE, enables VolumeDetect (object becomes phantom and physical objects/avatars can pass through it). Triggers collision_start on initial intersection and collision_end when intersection stops (standard collision events are suppressed while intersecting).

  • llWanderWithin

    Directs a pathfinding character to wander around a central coordinate origin, restricted within the bounding distance limits of dist and configured by options.

  • llWater

    Returns a float representing the water height directly below the prim's position offset by the vector offset.

  • llWhisper

    Broadcasts the message msg to all scripts or agents listening on channel within llGetEnv("whisper_range"), which is 10m on most regions. Agents listen on PUBLIC_CHANNEL (0) and DEBUG_CHANNEL (2147483647). All other channels are for script-to-script communication.

  • llWind

    Returns a vector representing the wind velocity at the prim's position offset by the vector offset.

  • llWorldPosToHUD

    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 the PERMISSION_TRACK_CAMERA runtime permission.

  • llXorBase64

    Correctly performs a bitwise exclusive OR (XOR) on Base64 strings str1 and str2, returning the result as a Base64 string. The string str2 repeats if it is shorter than str1.