@gwigz/slua

Functions

All 522 LSL API functions

Function descriptions and signatures are sourced from the lsl-definitions repository by Linden Lab and its contributors

The ll namespace holds all 522 LSL API functions.

A

Abs

ll.Abs · llAbs

Deprecated

Use 'math.abs' instead. Double precision; fastcall.

Returns the absolute (positive) integer value of val.

function Abs(val: number): number

Acos

ll.Acos · llAcos

Deprecated

Use 'math.acos' instead. Double precision; fastcall.

Returns the arccosine of val in radians.

function Acos(val: number): number

AddToLandBanList

ll.AddToLandBanList · 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).

function AddToLandBanList(avatar: UUID, hours: number): void

AddToLandPassList

ll.AddToLandPassList · llAddToLandPassList

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

function AddToLandPassList(avatar: UUID, hours: number): void

AdjustDamage

ll.AdjustDamage · llAdjustDamage

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

function AdjustDamage(number: number, newDamage: number): void

AdjustSoundVolume

ll.AdjustSoundVolume · llAdjustSoundVolume

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

function AdjustSoundVolume(volume: number): void

AgentInExperience

ll.AgentInExperience · llAgentInExperience

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

function AgentInExperience(agent: UUID): boolean

AllowInventoryDrop

ll.AllowInventoryDrop · 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.

function AllowInventoryDrop(add: boolean): void

AngleBetween

ll.AngleBetween · llAngleBetween

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

function AngleBetween(startRot: Quaternion, endRot: Quaternion): number

ApplyImpulse

ll.ApplyImpulse · 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.

function ApplyImpulse(momentum: Vector, isLocal: boolean): void

ApplyRotationalImpulse

ll.ApplyRotationalImpulse · 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.

function ApplyRotationalImpulse(force: Vector, isLocal: boolean): void

Asin

ll.Asin · llAsin

Deprecated

Use 'math.asin' instead. Double precision; fastcall.

Returns the arcsine of val in radians.

function Asin(val: number): number

Atan2

ll.Atan2 · llAtan2

Deprecated

Use 'math.atan2' instead. Double precision; fastcall.

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.

function Atan2(y: number, x: number): number

AttachToAvatar

ll.AttachToAvatar · 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.

function AttachToAvatar(attachPoint: number): void

AttachToAvatarTemp

ll.AttachToAvatarTemp · 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).

function AttachToAvatarTemp(attachPoint: number): void

AvatarOnLinkSitTarget

ll.AvatarOnLinkSitTarget · llAvatarOnLinkSitTarget

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

function AvatarOnLinkSitTarget(link: number): UUID

AvatarOnSitTarget

ll.AvatarOnSitTarget · 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.

function AvatarOnSitTarget(): UUID

Axes2Rot

ll.Axes2Rot · llAxes2Rot

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

function Axes2Rot(fwd: Vector, left: Vector, up: Vector): Quaternion

AxisAngle2Rot

ll.AxisAngle2Rot · llAxisAngle2Rot

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

function AxisAngle2Rot(axis: Vector, angle: number): Quaternion

B

Base64ToInteger

ll.Base64ToInteger · llBase64ToInteger

Deprecated

Use 'llbase64.decode' and 'string.unpack' or 'buffer.readi32' instead.

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.

function Base64ToInteger(str: string): number

Base64ToString

ll.Base64ToString · llBase64ToString

Deprecated

Use 'llbase64.decode' instead.

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.

function Base64ToString(str: string): string

ll.BreakAllLinks · llBreakAllLinks

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

function BreakAllLinks(): void

ll.BreakLink · llBreakLink

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

function BreakLink(link: number): void

C

CSV2List

ll.CSV2List · llCSV2List

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

function CSV2List(src: string): string[]

CastRay

ll.CastRay · 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.

function CastRay<const T extends readonly unknown[]>(startPos: Vector, endPos: Vector, options: T & ParseCastRayParams<T>): list

Ceil

ll.Ceil · llCeil

Deprecated

Use 'math.ceil' instead. Fastcall.

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

function Ceil(val: number): number

Char

ll.Char · llChar

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

function Char(val: number): string

ClearCameraParams

ll.ClearCameraParams · 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).

function ClearCameraParams(): void

ClearExperience

ll.ClearExperience · llClearExperience

Deprecated

This function is deprecated.

function ClearExperience(agentid: UUID, experienceid: UUID): void

ClearExperiencePermissions

ll.ClearExperiencePermissions · llClearExperiencePermissions

Deprecated

This function is deprecated.

function ClearExperiencePermissions(agentid: UUID): void

ClearLinkMedia

ll.ClearLinkMedia · 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.

function ClearLinkMedia(link: number, face: number): number

ClearPrimMedia

ll.ClearPrimMedia · 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.

function ClearPrimMedia(face: number): number

CloseRemoteDataChannel

ll.CloseRemoteDataChannel · llCloseRemoteDataChannel

Deprecated

This function is deprecated.

Deprecated. Closes the specified XML-RPC channel.

function CloseRemoteDataChannel(channel: UUID): void

Cloud

ll.Cloud · llCloud

Deprecated

This function is deprecated.

Returns a float representing the cloud density at the prim's position offset by the vector offset.

function Cloud(offset: Vector): number

CollisionFilter

ll.CollisionFilter · 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.

function CollisionFilter(name: string, id: UUID, accept: boolean): void

CollisionSound

ll.CollisionSound · 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.

function CollisionSound(impactSound: string, impactVolume: number): void

CollisionSprite

ll.CollisionSprite · llCollisionSprite

Deprecated

This function is deprecated.

Suppresses default collision sprites and replaces them with impact_sprite (which must be in the prim's inventory). Supply an empty string to only suppress collision sprites.

function CollisionSprite(impactSprite: string): void

ComputeHash

ll.ComputeHash · llComputeHash

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

function ComputeHash(message: string, algorithm: string): string

Cos

ll.Cos · llCos

Deprecated

Use 'math.cos' instead. Double precision; fastcall.

Returns the cosine of theta. Theta is in radians.

function Cos(theta: number): number

CreateCharacter

ll.CreateCharacter · llCreateCharacter

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

function CreateCharacter<const T extends readonly unknown[]>(options: T & ParseCharacterParams<T>): void

CreateKeyValue

ll.CreateKeyValue · 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.

function CreateKeyValue(k: string, v: string): UUID

ll.CreateLink · llCreateLink

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

function CreateLink(target: UUID, parent: boolean): void

D

Damage

ll.Damage · llDamage

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

function Damage(target: UUID, damage: number, damageType: number): void

DataSizeKeyValue

ll.DataSizeKeyValue · 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.

function DataSizeKeyValue(): UUID

DeleteCharacter

ll.DeleteCharacter · llDeleteCharacter

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

function DeleteCharacter(): void

DeleteKeyValue

ll.DeleteKeyValue · 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.

function DeleteKeyValue(k: string): UUID

DeleteSubList

ll.DeleteSubList · llDeleteSubList

Deprecated

Use 'table.remove' instead. Unnecessary table copying.

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.

function DeleteSubList(src: T[], startIndex: number, endIndex: number): T[]

DeleteSubString

ll.DeleteSubString · 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.

function DeleteSubString(src: string, startIndex: number, endIndex: number): string

DerezObject

ll.DerezObject · 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.

function DerezObject(id: UUID, flags: number): boolean

DetachFromAvatar

ll.DetachFromAvatar · 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.

function DetachFromAvatar(): void

DetectedDamage

ll.DetectedDamage · 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.

function DetectedDamage(number: number): DamageDetails

DetectedGrab

ll.DetectedGrab · 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.

function DetectedGrab(number: number): Vector

DetectedGroup

ll.DetectedGroup · 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.

function DetectedGroup(number: number): boolean

DetectedKey

ll.DetectedKey · llDetectedKey

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

function DetectedKey(number: number): UUID

DetectedLinkNumber

ll.DetectedLinkNumber · 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.

function DetectedLinkNumber(number: number): number

DetectedName

ll.DetectedName · 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.

function DetectedName(item: number): string

DetectedOwner

ll.DetectedOwner · 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.

function DetectedOwner(number: number): UUID

DetectedPos

ll.DetectedPos · 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.

function DetectedPos(number: number): Vector

DetectedRezzer

ll.DetectedRezzer · llDetectedRezzer

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

function DetectedRezzer(number: number): UUID

DetectedRot

ll.DetectedRot · 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.

function DetectedRot(number: number): Quaternion

DetectedTouchBinormal

ll.DetectedTouchBinormal · 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.

function DetectedTouchBinormal(index: number): Vector

DetectedTouchFace

ll.DetectedTouchFace · llDetectedTouchFace

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

function DetectedTouchFace(index: number): number

DetectedTouchNormal

ll.DetectedTouchNormal · 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.

function DetectedTouchNormal(index: number): Vector

DetectedTouchPos

ll.DetectedTouchPos · 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.

function DetectedTouchPos(index: number): Vector

DetectedTouchST

ll.DetectedTouchST · 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.

function DetectedTouchST(index: number): Vector

DetectedTouchUV

ll.DetectedTouchUV · 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.

function DetectedTouchUV(index: number): Vector

DetectedType

ll.DetectedType · 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.

function DetectedType(number: number): number

DetectedVel

ll.DetectedVel · 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.

function DetectedVel(number: number): Vector

Dialog

ll.Dialog · 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.

function Dialog(agent: UUID, msg: string, buttons: string[], channel: number): void

Die

ll.Die · llDie

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

function Die(): void

DumpList2String

ll.DumpList2String · llDumpList2String

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

function DumpList2String(src: list, separator: string): string

E

EdgeOfWorld

ll.EdgeOfWorld · 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.

function EdgeOfWorld(pos: Vector, dir: Vector): boolean

EjectFromLand

ll.EjectFromLand · llEjectFromLand

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

function EjectFromLand(avatar: UUID): void

Email

ll.Email · 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()

function Email(address: string, subject: string, msg: string): void

EscapeURL

ll.EscapeURL · 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.

function EscapeURL(url: string): string

Euler2Rot

ll.Euler2Rot · llEuler2Rot

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

function Euler2Rot(vec: Vector): Quaternion

Evade

ll.Evade · 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).

function Evade(target: UUID, options: list): void

ExecCharacterCmd

ll.ExecCharacterCmd · llExecCharacterCmd

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

function ExecCharacterCmd(command: number, options: list): void

F

Fabs

ll.Fabs · llFabs

Deprecated

Use 'math.abs' instead. Double precision; fastcall.

Returns the absolute (positive) value of val.

function Fabs(val: number): number

FindNotecardTextCount

ll.FindNotecardTextCount · 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.

function FindNotecardTextCount(notecardname: string, pattern: string, options: list): UUID

FindNotecardTextSync

ll.FindNotecardTextSync · 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.

function FindNotecardTextSync(name: string, pattern: string, start: number, count: number, options: list): list

FleeFrom

ll.FleeFrom · llFleeFrom

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

function FleeFrom(position: Vector, distance: number, options: list): void

Floor

ll.Floor · llFloor

Deprecated

Use 'math.floor' instead. Fastcall.

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

function Floor(val: number): number

ForceMouselook

ll.ForceMouselook · 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.

function ForceMouselook(mouselook: boolean): void

Frand

ll.Frand · 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.

function Frand(mag: number): number

G

GenerateKey

ll.GenerateKey · 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.

function GenerateKey(): UUID

GetAccel

ll.GetAccel · llGetAccel

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

function GetAccel(): Vector

GetAgentInfo

ll.GetAgentInfo · llGetAgentInfo

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

function GetAgentInfo(id: UUID): number

GetAgentLanguage

ll.GetAgentLanguage · llGetAgentLanguage

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

function GetAgentLanguage(avatar: UUID): string

GetAgentList

ll.GetAgentList · 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.

function GetAgentList(scope: number, options: list): UUID[]

GetAgentSize

ll.GetAgentSize · 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.

function GetAgentSize(avatar: UUID): Vector

GetAlpha

ll.GetAlpha · llGetAlpha

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

function GetAlpha(face: number): number

GetAnimation

ll.GetAnimation · llGetAnimation

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

function GetAnimation(avatar: UUID): string

GetAnimationList

ll.GetAnimationList · llGetAnimationList

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

function GetAnimationList(avatar: UUID): UUID[]

GetAnimationOverride

ll.GetAnimationOverride · 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.

function GetAnimationOverride(animState: string): string

GetAttached

ll.GetAttached · llGetAttached

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

function GetAttached(): number

GetAttachedList

ll.GetAttachedList · 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.

function GetAttachedList(avatar: UUID): UUID[] | string[]

GetAttachedListFiltered

ll.GetAttachedListFiltered · 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.

function GetAttachedListFiltered(avatar: UUID, options: list): UUID[] | string[]

GetBoundingBox

ll.GetBoundingBox · 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 ].

function GetBoundingBox(object: UUID): Vector[]

GetCameraAspect

ll.GetCameraAspect · 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.

function GetCameraAspect(): number

GetCameraFOV

ll.GetCameraFOV · 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.

function GetCameraFOV(): number

GetCameraPos

ll.GetCameraPos · 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.

function GetCameraPos(): Vector

GetCameraRot

ll.GetCameraRot · 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.

function GetCameraRot(): Quaternion

GetCenterOfMass

ll.GetCenterOfMass · 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.

function GetCenterOfMass(): Vector

GetClosestNavPoint

ll.GetClosestNavPoint · 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.

function GetClosestNavPoint(point: Vector, options: list): Vector[]

GetColor

ll.GetColor · 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.

function GetColor(face: number): Vector

GetCreator

ll.GetCreator · llGetCreator

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

function GetCreator(): UUID

GetDate

ll.GetDate · llGetDate

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

function GetDate(): string

GetDayLength

ll.GetDayLength · llGetDayLength

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

function GetDayLength(): number

GetDayOffset

ll.GetDayOffset · llGetDayOffset

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

function GetDayOffset(): number

GetDisplayName

ll.GetDisplayName · 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).

function GetDisplayName(id: UUID): string

GetEnergy

ll.GetEnergy · llGetEnergy

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

function GetEnergy(): number

GetEnv

ll.GetEnv · llGetEnv

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

function GetEnv(name: string): string

GetEnvironment

ll.GetEnvironment · llGetEnvironment

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

function GetEnvironment<const T extends readonly EnvironmentParamFlag[]>(pos: Vector, params: T): MapEnvironmentParam<T> | []

GetExperienceDetails

ll.GetExperienceDetails · 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].

function GetExperienceDetails(experienceId: UUID): ExperienceDetails

GetExperienceErrorMessage

ll.GetExperienceErrorMessage · llGetExperienceErrorMessage

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

function GetExperienceErrorMessage(error: number): string

GetExperienceList

ll.GetExperienceList · llGetExperienceList

Deprecated

This function is deprecated.

function GetExperienceList(agentid: UUID): UUID[]

GetForce

ll.GetForce · llGetForce

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

function GetForce(): Vector

GetFreeMemory

ll.GetFreeMemory · llGetFreeMemory

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

function GetFreeMemory(): number

GetFreeURLs

ll.GetFreeURLs · 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).

function GetFreeURLs(): number

GetGMTclock

ll.GetGMTclock · llGetGMTclock

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

function GetGMTclock(): number

GetGeometricCenter

ll.GetGeometricCenter · llGetGeometricCenter

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

function GetGeometricCenter(): Vector

GetHTTPHeader

ll.GetHTTPHeader · llGetHTTPHeader

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

function GetHTTPHeader(requestId: UUID, header: string): string

GetHealth

ll.GetHealth · llGetHealth

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

function GetHealth(id: UUID): number

GetInventoryAcquireTime

ll.GetInventoryAcquireTime · 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"

function GetInventoryAcquireTime(item: string): string

GetInventoryCreator

ll.GetInventoryCreator · llGetInventoryCreator

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

function GetInventoryCreator(item: string): UUID

GetInventoryDesc

ll.GetInventoryDesc · llGetInventoryDesc

Returns the description string of the specified inventory item.

function GetInventoryDesc(item: string): string

GetInventoryKey

ll.GetInventoryKey · llGetInventoryKey

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

function GetInventoryKey(item: string): UUID

GetInventoryName

ll.GetInventoryName · llGetInventoryName

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

function GetInventoryName(type: number, index: number): string

GetInventoryNumber

ll.GetInventoryNumber · llGetInventoryNumber

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

function GetInventoryNumber(type: number): number

GetInventoryPermMask

ll.GetInventoryPermMask · llGetInventoryPermMask

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

function GetInventoryPermMask(item: string, group: number): number

GetInventoryType

ll.GetInventoryType · llGetInventoryType

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

function GetInventoryType(item: string): number

GetKey

ll.GetKey · llGetKey

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

function GetKey(): UUID

GetLandOwnerAt

ll.GetLandOwnerAt · llGetLandOwnerAt

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

function GetLandOwnerAt(pos: Vector): UUID

GetLinkKey

ll.GetLinkKey · llGetLinkKey

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

function GetLinkKey(link: number): UUID

GetLinkMedia

ll.GetLinkMedia · llGetLinkMedia

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

function GetLinkMedia<const T extends readonly MediaParamFlag[]>(link: number, face: number, params: T): MapMediaParam<T> | []

GetLinkName

ll.GetLinkName · llGetLinkName

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

function GetLinkName(link: number): string

GetLinkNumber

ll.GetLinkNumber · llGetLinkNumber

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

function GetLinkNumber(): number

GetLinkNumberOfSides

ll.GetLinkNumberOfSides · llGetLinkNumberOfSides

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

function GetLinkNumberOfSides(link: number): number

GetLinkPrimitiveParams

ll.GetLinkPrimitiveParams · llGetLinkPrimitiveParams

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

function GetLinkPrimitiveParams<const T extends readonly unknown[]>(link: number, params: T & ParsePrimParamGets<T>): MapPrimParamGet<T> | []

GetLinkSitFlags

ll.GetLinkSitFlags · llGetLinkSitFlags

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

function GetLinkSitFlags(link: number): number

GetListEntryType

ll.GetListEntryType · llGetListEntryType

Deprecated

Use 'typeof' instead.

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

function GetListEntryType(src: list, index: number): number

GetListLength

ll.GetListLength · llGetListLength

Deprecated

Use '#' or 'rawlen' instead. Metatable support.

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

function GetListLength(src: list): number

GetLocalPos

ll.GetLocalPos · 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).

function GetLocalPos(): Vector

GetLocalRot

ll.GetLocalRot · 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.

function GetLocalRot(): Quaternion

GetMass

ll.GetMass · 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.

function GetMass(): number

GetMassMKS

ll.GetMassMKS · llGetMassMKS

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

function GetMassMKS(): number

GetMaxScaleFactor

ll.GetMaxScaleFactor · llGetMaxScaleFactor

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

function GetMaxScaleFactor(): number

GetMemoryLimit

ll.GetMemoryLimit · llGetMemoryLimit

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

function GetMemoryLimit(): number

GetMinScaleFactor

ll.GetMinScaleFactor · llGetMinScaleFactor

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

function GetMinScaleFactor(): number

GetMoonDirection

ll.GetMoonDirection · 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.

function GetMoonDirection(): Vector

GetMoonRotation

ll.GetMoonRotation · 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.

function GetMoonRotation(): Quaternion

GetNextEmail

ll.GetNextEmail · 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)

function GetNextEmail(address: string, subject: string): void

GetNotecardLine

ll.GetNotecardLine · 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.

function GetNotecardLine(name: string, line: number): UUID

GetNotecardLineSync

ll.GetNotecardLineSync · 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.

function GetNotecardLineSync(name: string, line: number): string

GetNumberOfNotecardLines

ll.GetNumberOfNotecardLines · llGetNumberOfNotecardLines

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

function GetNumberOfNotecardLines(name: string): UUID

GetNumberOfPrims

ll.GetNumberOfPrims · llGetNumberOfPrims

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

function GetNumberOfPrims(): number

GetNumberOfSides

ll.GetNumberOfSides · llGetNumberOfSides

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

function GetNumberOfSides(): number

GetObjectAnimationNames

ll.GetObjectAnimationNames · llGetObjectAnimationNames

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

function GetObjectAnimationNames(): string[]

GetObjectDesc

ll.GetObjectDesc · llGetObjectDesc

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

function GetObjectDesc(): string

GetObjectDetails

ll.GetObjectDetails · llGetObjectDetails

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

function GetObjectDetails<const T extends readonly ObjectDetailFlag[]>(id: UUID, params: T): MapObjectDetail<T> | []

GetObjectLinkKey

ll.GetObjectLinkKey · llGetObjectLinkKey

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

function GetObjectLinkKey(objectId: UUID, link: number): UUID

GetObjectMass

ll.GetObjectMass · llGetObjectMass

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

function GetObjectMass(id: UUID): number

GetObjectName

ll.GetObjectName · llGetObjectName

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

function GetObjectName(): string

GetObjectPermMask

ll.GetObjectPermMask · llGetObjectPermMask

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

function GetObjectPermMask(group: number): number

GetObjectPrimCount

ll.GetObjectPrimCount · llGetObjectPrimCount

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

function GetObjectPrimCount(prim: UUID): number

GetOmega

ll.GetOmega · llGetOmega

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

function GetOmega(): Vector

GetOwner

ll.GetOwner · llGetOwner

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

function GetOwner(): UUID

GetOwnerKey

ll.GetOwnerKey · llGetOwnerKey

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

function GetOwnerKey(id: UUID): UUID

GetParcelDetails

ll.GetParcelDetails · llGetParcelDetails

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

function GetParcelDetails<const T extends readonly ParcelDetailFlag[]>(pos: Vector, params: T): MapParcelDetail<T> | []

GetParcelFlags

ll.GetParcelFlags · llGetParcelFlags

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

function GetParcelFlags(pos: Vector): number

GetParcelMaxPrims

ll.GetParcelMaxPrims · 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.

function GetParcelMaxPrims(pos: Vector, simWide: boolean): number

GetParcelMusicURL

ll.GetParcelMusicURL · 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).

function GetParcelMusicURL(): string

GetParcelPrimCount

ll.GetParcelPrimCount · 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.

function GetParcelPrimCount(pos: Vector, category: number, simWide: boolean): number

GetParcelPrimOwners

ll.GetParcelPrimOwners · 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.

function GetParcelPrimOwners(pos: Vector): ParcelPrimOwners

GetPermissions

ll.GetPermissions · llGetPermissions

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

function GetPermissions(): number

GetPermissionsKey

ll.GetPermissionsKey · 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.

function GetPermissionsKey(): UUID

GetPhysicsMaterial

ll.GetPhysicsMaterial · llGetPhysicsMaterial

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

function GetPhysicsMaterial(): PhysicsMaterial

GetPos

ll.GetPos · llGetPos

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

function GetPos(): Vector

GetPrimMediaParams

ll.GetPrimMediaParams · 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.

function GetPrimMediaParams<const T extends readonly MediaParamFlag[]>(face: number, params: T): MapMediaParam<T> | []

GetPrimitiveParams

ll.GetPrimitiveParams · llGetPrimitiveParams

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

function GetPrimitiveParams<const T extends readonly unknown[]>(params: T & ParsePrimParamGets<T>): MapPrimParamGet<T> | []

GetRegionAgentCount

ll.GetRegionAgentCount · llGetRegionAgentCount

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

function GetRegionAgentCount(): number

GetRegionCorner

ll.GetRegionCorner · 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).

function GetRegionCorner(): Vector

GetRegionDayLength

ll.GetRegionDayLength · llGetRegionDayLength

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

function GetRegionDayLength(): number

GetRegionDayOffset

ll.GetRegionDayOffset · llGetRegionDayOffset

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

function GetRegionDayOffset(): number

GetRegionFPS

ll.GetRegionFPS · llGetRegionFPS

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

function GetRegionFPS(): number

GetRegionFlags

ll.GetRegionFlags · llGetRegionFlags

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

function GetRegionFlags(): number

GetRegionMoonDirection

ll.GetRegionMoonDirection · llGetRegionMoonDirection

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

function GetRegionMoonDirection(): Vector

GetRegionMoonRotation

ll.GetRegionMoonRotation · llGetRegionMoonRotation

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

function GetRegionMoonRotation(): Quaternion

GetRegionName

ll.GetRegionName · llGetRegionName

Returns a string containing the name of the current region.

function GetRegionName(): string

GetRegionSunDirection

ll.GetRegionSunDirection · llGetRegionSunDirection

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

function GetRegionSunDirection(): Vector

GetRegionSunRotation

ll.GetRegionSunRotation · llGetRegionSunRotation

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

function GetRegionSunRotation(): Quaternion

GetRegionTimeDilation

ll.GetRegionTimeDilation · 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).

function GetRegionTimeDilation(): number

GetRegionTimeOfDay

ll.GetRegionTimeOfDay · 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.

function GetRegionTimeOfDay(): number

GetRenderMaterial

ll.GetRenderMaterial · 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).

function GetRenderMaterial(face: number): string

GetRootPosition

ll.GetRootPosition · llGetRootPosition

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

function GetRootPosition(): Vector

GetRootRotation

ll.GetRootRotation · llGetRootRotation

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

function GetRootRotation(): Quaternion

GetRot

ll.GetRot · llGetRot

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

function GetRot(): Quaternion

GetSPMaxMemory

ll.GetSPMaxMemory · 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).

function GetSPMaxMemory(): number

GetScale

ll.GetScale · llGetScale

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

function GetScale(): Vector

GetScriptName

ll.GetScriptName · llGetScriptName

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

function GetScriptName(): string

GetScriptState

ll.GetScriptState · llGetScriptState

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

function GetScriptState(script: string): boolean

GetSimStats

ll.GetSimStats · llGetSimStats

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

function GetSimStats(statType: number): number

GetSimulatorHostname

ll.GetSimulatorHostname · llGetSimulatorHostname

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

function GetSimulatorHostname(): string

GetStartParameter

ll.GetStartParameter · llGetStartParameter

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

function GetStartParameter(): number

GetStartString

ll.GetStartString · 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).

function GetStartString(): string

GetStaticPath

ll.GetStaticPath · 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.

function GetStaticPath(startPos: Vector, endPos: Vector, radius: number, params: list): list

GetStatus

ll.GetStatus · llGetStatus

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

function GetStatus(status: number): boolean

GetSubString

ll.GetSubString · 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.

function GetSubString(src: string, startIndex: number, endIndex: number): string

GetSunDirection

ll.GetSunDirection · 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.

function GetSunDirection(): Vector

GetSunRotation

ll.GetSunRotation · 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.

function GetSunRotation(): Quaternion

GetTexture

ll.GetTexture · 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).

function GetTexture(face: number): string

GetTextureOffset

ll.GetTextureOffset · llGetTextureOffset

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

function GetTextureOffset(face: number): Vector

GetTextureRot

ll.GetTextureRot · llGetTextureRot

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

function GetTextureRot(face: number): number

GetTextureScale

ll.GetTextureScale · llGetTextureScale

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

function GetTextureScale(face: number): Vector

GetTime

ll.GetTime · 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).

function GetTime(): number

GetTimeOfDay

ll.GetTimeOfDay · 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.

function GetTimeOfDay(): number

GetTimestamp

ll.GetTimestamp · 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').

function GetTimestamp(): string

GetTorque

ll.GetTorque · llGetTorque

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

function GetTorque(): Vector

GetUnixTime

ll.GetUnixTime · llGetUnixTime

Deprecated

Use 'os.time' instead. Int32 will wrap on 2038-01-19

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

function GetUnixTime(): number

GetUsedMemory

ll.GetUsedMemory · 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).

function GetUsedMemory(): number

GetUsername

ll.GetUsername · 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).

function GetUsername(id: UUID): string

GetVel

ll.GetVel · 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.

function GetVel(): Vector

GetVisualParams

ll.GetVisualParams · llGetVisualParams

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

function GetVisualParams(agentid: UUID, params: (number | string)[]): (number | "")[]

GetWallclock

ll.GetWallclock · 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.

function GetWallclock(): number

GiveAgentInventory

ll.GiveAgentInventory · 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.

function GiveAgentInventory(agent: UUID, folder: string, items: string[], options: list): number

GiveInventory

ll.GiveInventory · 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.

function GiveInventory(target: UUID, item: string): void

GiveInventoryList

ll.GiveInventoryList · 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.

function GiveInventoryList(target: UUID, folder: string, items: string[]): void

GiveMoney

ll.GiveMoney · 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).

function GiveMoney(destination: UUID, amount: number): number

GodLikeRezObject

ll.GodLikeRezObject · llGodLikeRezObject

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

function GodLikeRezObject(id: UUID, pos: Vector): void

Ground

ll.Ground · llGround

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

function Ground(offset: Vector): number

GroundContour

ll.GroundContour · 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.

function GroundContour(offset: Vector): Vector

GroundNormal

ll.GroundNormal · llGroundNormal

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

function GroundNormal(offset: Vector): Vector

GroundRepel

ll.GroundRepel · 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.

function GroundRepel(height: number, water: boolean, tau: number): void

GroundSlope

ll.GroundSlope · llGroundSlope

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

function GroundSlope(offset: Vector): Vector

H

HMAC

ll.HMAC · 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).

function HMAC(privateKey: string, msg: string, algorithm: string): string

HTTPRequest

ll.HTTPRequest · 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.

function HTTPRequest<const T extends readonly unknown[]>(url: string, parameters: T & ParseHttpParams<T>, body: string): UUID

HTTPResponse

ll.HTTPResponse · llHTTPResponse

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

function HTTPResponse(requestId: UUID, status: number, body: string): void

Hash

ll.Hash · llHash

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

function Hash(val: string): number

I

InsertString

ll.InsertString · llInsertString

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

function InsertString(dst: string, index: number, src: string): string

InstantMessage

ll.InstantMessage · llInstantMessage

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

function InstantMessage(agent: UUID, msg: string): void

IntegerToBase64

ll.IntegerToBase64 · llIntegerToBase64

Deprecated

Use 'llbase64.encode' and 'string.pack' or 'buffer.writei32' instead.

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

function IntegerToBase64(number: number): string

IsFriend

ll.IsFriend · llIsFriend

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

function IsFriend(agentId: UUID): boolean

IsLinkGLTFMaterial

ll.IsLinkGLTFMaterial · 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.

function IsLinkGLTFMaterial(link: number, face: number): boolean

J

Json2List

ll.Json2List · llJson2List

Deprecated

Use 'lljson.decode' instead.

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

function Json2List(src: string): list

JsonGetValue

ll.JsonGetValue · llJsonGetValue

Deprecated

Use 'lljson.decode' instead. Also, the indices are zero-based.

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

function JsonGetValue(json: string, specifiers: list): string

JsonSetValue

ll.JsonSetValue · llJsonSetValue

Deprecated

Use 'lljson.encode' instead. Also, the indices are zero-based.

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.

function JsonSetValue(json: string, specifiers: list, value: string): string

JsonValueType

ll.JsonValueType · llJsonValueType

Deprecated

Use 'lljson.decode' and 'typeof' instead. Also, the indices are zero-based.

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

function JsonValueType(json: string, specifiers: list): string

K

Key2Name

ll.Key2Name · 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.

function Key2Name(id: UUID): string

KeyCountKeyValue

ll.KeyCountKeyValue · 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.

function KeyCountKeyValue(): UUID

KeysKeyValue

ll.KeysKeyValue · 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.

function KeysKeyValue(first: number, count: number): UUID

L

Linear2sRGB

ll.Linear2sRGB · llLinear2sRGB

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

function Linear2sRGB(color: Vector): Vector

LinkAdjustSoundVolume

ll.LinkAdjustSoundVolume · llLinkAdjustSoundVolume

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

function LinkAdjustSoundVolume(link: number, volume: number): void

LinkParticleSystem

ll.LinkParticleSystem · 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.

function LinkParticleSystem<const T extends readonly unknown[]>(link: number, rules: T & ParseParticleSystemParams<T>): void

LinkPlaySound

ll.LinkPlaySound · 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.

function LinkPlaySound(link: number, sound: string, volume: number, flags: number): void

LinkSetSoundQueueing

ll.LinkSetSoundQueueing · llLinkSetSoundQueueing

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

function LinkSetSoundQueueing(link: number, queue: boolean): void

LinkSetSoundRadius

ll.LinkSetSoundRadius · llLinkSetSoundRadius

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

function LinkSetSoundRadius(link: number, radius: number): void

LinkSitTarget

ll.LinkSitTarget · 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>.

function LinkSitTarget(link: number, offset: Vector, rot: Quaternion): void

LinkStopSound

ll.LinkStopSound · llLinkStopSound

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

function LinkStopSound(link: number): void

LinksetDataAvailable

ll.LinksetDataAvailable · llLinksetDataAvailable

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

function LinksetDataAvailable(): number

LinksetDataCountFound

ll.LinksetDataCountFound · llLinksetDataCountFound

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

function LinksetDataCountFound(pattern: string): number

LinksetDataCountKeys

ll.LinksetDataCountKeys · llLinksetDataCountKeys

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

function LinksetDataCountKeys(): number

LinksetDataDelete

ll.LinksetDataDelete · llLinksetDataDelete

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

function LinksetDataDelete(name: string): number

LinksetDataDeleteFound

ll.LinksetDataDeleteFound · 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.

function LinksetDataDeleteFound(pattern: string, pass: string): number[]

LinksetDataDeleteProtected

ll.LinksetDataDeleteProtected · llLinksetDataDeleteProtected

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

function LinksetDataDeleteProtected(name: string, pass: string): number

LinksetDataFindKeys

ll.LinksetDataFindKeys · 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).

function LinksetDataFindKeys(pattern: string, start: number, count: number): string[]

LinksetDataListKeys

ll.LinksetDataListKeys · llLinksetDataListKeys

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

function LinksetDataListKeys(start: number, count: number): string[]

LinksetDataRead

ll.LinksetDataRead · llLinksetDataRead

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

function LinksetDataRead(name: string): string

LinksetDataReadProtected

ll.LinksetDataReadProtected · llLinksetDataReadProtected

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

function LinksetDataReadProtected(name: string, pass: string): string

LinksetDataReset

ll.LinksetDataReset · 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.

function LinksetDataReset(): void

LinksetDataWrite

ll.LinksetDataWrite · llLinksetDataWrite

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

function LinksetDataWrite(name: string, value: string): number

LinksetDataWriteProtected

ll.LinksetDataWriteProtected · 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.

function LinksetDataWriteProtected(name: string, value: string, pass: string): number

List2CSV

ll.List2CSV · llList2CSV

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

function List2CSV(src: list): string

List2Float

ll.List2Float · llList2Float

Deprecated

Use '[]' and 'tonumber' instead.

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.

function List2Float(src: list, index: number): number

List2Integer

ll.List2Integer · llList2Integer

Deprecated

Use '[]', 'tonumber', and 'math.modf' instead.

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.

function List2Integer(src: list, index: number): number

List2Json

ll.List2Json · llList2Json

Deprecated

Use 'lljson.encode' instead.

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.

function List2Json(type: string, values: list): string

List2Key

ll.List2Key · llList2Key

Deprecated

Use '[]' and 'touuid' instead.

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.

function List2Key(src: list, index: number): UUID

List2List

ll.List2List · llList2List

Deprecated

Use 'unpack' (fastcall) or 'table.move' instead. Prefer structured tables over strided lists.

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.

function List2List(src: T[], startIndex: number, endIndex: number): T[]

List2ListSlice

ll.List2ListSlice · llList2ListSlice

Deprecated

Prefer structured tables over strided lists.

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.

function List2ListSlice(src: T[], startIndex: number, endIndex: number, stride: number, sliceIndex: number): T[]

List2ListStrided

ll.List2ListStrided · llList2ListStrided

Deprecated

Prefer structured tables over strided lists.

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

function List2ListStrided(src: T[], startIndex: number, endIndex: number, stride: number): T[]

List2Rot

ll.List2Rot · llList2Rot

Deprecated

Use '[]' instead.

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.

function List2Rot(src: list, index: number): Quaternion

List2String

ll.List2String · llList2String

Deprecated

Use '[]' and 'tostring' instead.

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

function List2String(src: list, index: number): string

List2Vector

ll.List2Vector · llList2Vector

Deprecated

Use '[]' instead.

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.

function List2Vector(src: list, index: number): Vector

ListFindList

ll.ListFindList · llListFindList

Deprecated

Use 'table.find' instead. Prefer dictionaries or single-item searches.

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

function ListFindList(src: list, test: list): number | undefined

ListFindListNext

ll.ListFindListNext · llListFindListNext

Deprecated

Use 'table.find' instead. Prefer dictionaries or single-item searches.

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

function ListFindListNext(src: list, test: list, instance: number): number | undefined

ListFindStrided

ll.ListFindStrided · llListFindStrided

Deprecated

Prefer dictionary lookups over strided list searches.

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.

function ListFindStrided(src: list, test: list, startIndex: number, endIndex: number, stride: number): number | undefined

ListInsertList

ll.ListInsertList · llListInsertList

Deprecated

Use 'table.insert' instead. Unnecessary table copying. Fastcall.

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

function ListInsertList(dest: T[], src: T[], start: number): T[]

ListRandomize

ll.ListRandomize · 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.

function ListRandomize(src: T[], stride: number): T[]

ListReplaceList

ll.ListReplaceList · llListReplaceList

Deprecated

Use 't[n] = x' instead. Unnecessary table copying.

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.

function ListReplaceList(dest: T[], src: T[], startIndex: number, endIndex: number): T[]

ListSort

ll.ListSort · 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.

function ListSort(src: T[], stride: number, ascending: boolean): T[]

ListSortStrided

ll.ListSortStrided · llListSortStrided

Deprecated

Use 'table.sort' instead. Prefer structured tables over strided lists.

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

function ListSortStrided(src: T[], stride: number, strideIndex: number, ascending: boolean): T[]

ListStatistics

ll.ListStatistics · llListStatistics

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

function ListStatistics(operation: number, src: number[]): number

Listen

ll.Listen · 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.

function Listen(channel: number, name: string, id: UUID, msg: string): number

ListenControl

ll.ListenControl · llListenControl

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

function ListenControl(handle: number, active: boolean): void

ListenRemove

ll.ListenRemove · llListenRemove

Completely removes the listener specified by the integer handle.

function ListenRemove(handle: number): void

LoadURL

ll.LoadURL · 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.

function LoadURL(avatar: UUID, message: string, url: string): void

Log

ll.Log · llLog

Deprecated

Use 'math.log' instead. Double precision; fastcall.

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

function Log(val: number): number

Log10

ll.Log10 · llLog10

Deprecated

Use 'math.log10' instead. Double precision; fastcall.

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

function Log10(val: number): number

LookAt

ll.LookAt · 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.

function LookAt(target: Vector, strength: number, damping: number): void

LoopSound

ll.LoopSound · 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.

function LoopSound(sound: string, volume: number): void

LoopSoundMaster

ll.LoopSoundMaster · llLoopSoundMaster

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

function LoopSoundMaster(sound: string, volume: number): void

LoopSoundSlave

ll.LoopSoundSlave · llLoopSoundSlave

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

function LoopSoundSlave(sound: string, volume: number): void

M

MD5String

ll.MD5String · llMD5String

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

function MD5String(src: string, nonce: number): string

MakeExplosion

ll.MakeExplosion · llMakeExplosion

Deprecated

Use 'll.ParticleSystem' instead.

Deprecated. Generates a circular explosion of particles. Use llParticleSystem instead.

function MakeExplosion(particles: number, scale: number, vel: number, lifetime: number, arc: number, texture: string, offset: Vector): void

MakeFire

ll.MakeFire · llMakeFire

Deprecated

Use 'll.ParticleSystem' instead.

Deprecated. Generates fire-like particles. Use llParticleSystem instead.

function MakeFire(particles: number, scale: number, vel: number, lifetime: number, arc: number, texture: string, offset: Vector): void

MakeFountain

ll.MakeFountain · llMakeFountain

Deprecated

Use 'll.ParticleSystem' instead.

Deprecated. Generates a fountain of particles. Use llParticleSystem instead.

function MakeFountain(particles: number, scale: number, vel: number, lifetime: number, arc: number, bounce: number, texture: string, offset: Vector, bounceOffset: number): void

MakeSmoke

ll.MakeSmoke · llMakeSmoke

Deprecated

Use 'll.ParticleSystem' instead.

Deprecated. Generates smoke-like particles. Use llParticleSystem instead.

function MakeSmoke(particles: number, scale: number, vel: number, lifetime: number, arc: number, texture: string, offset: Vector): void

ManageEstateAccess

ll.ManageEstateAccess · 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.

function ManageEstateAccess(action: number, avatar: UUID): boolean

MapBeacon

ll.MapBeacon · 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.

function MapBeacon(regionName: string, pos: Vector, options: list): void

MapDestination

ll.MapDestination · 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.

function MapDestination(simname: string, pos: Vector, lookAt: Vector): void

MessageLinked

ll.MessageLinked · 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.

function MessageLinked(link: number, num: number, str: string | UUID, id: string | UUID): void

MinEventDelay

ll.MinEventDelay · llMinEventDelay

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

function MinEventDelay(delay: number): void

ModPow

ll.ModPow · 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.

function ModPow(base: number, exponent: number, modulus: number): number

ModifyLand

ll.ModifyLand · 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).

function ModifyLand(action: number, brush: number): void

MoveToTarget

ll.MoveToTarget · 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.

function MoveToTarget(target: Vector, tau: number): void

N

Name2Key

ll.Name2Key · 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).

function Name2Key(name: string): UUID

ll.NavigateTo · llNavigateTo

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

function NavigateTo(pos: Vector, options: list): void

O

OffsetTexture

ll.OffsetTexture · llOffsetTexture

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

function OffsetTexture(u: number, v: number, face: number): void

OpenFloater

ll.OpenFloater · llOpenFloater

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

function OpenFloater(floaterName: string, url: string, params: list): number

OpenRemoteDataChannel

ll.OpenRemoteDataChannel · llOpenRemoteDataChannel

Deprecated

This function is deprecated.

Deprecated. Creates a channel to listen for incoming XML-RPC calls, triggering a remote_data event with the channel ID once available.

function OpenRemoteDataChannel(): void

Ord

ll.Ord · 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.

function Ord(val: string, index: number): number

OverMyLand

ll.OverMyLand · llOverMyLand

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

function OverMyLand(id: UUID): boolean

OwnerSay

ll.OwnerSay · llOwnerSay

Deprecated

Use 'print' instead.

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

function OwnerSay(msg: string): void

P

ParcelMediaCommandList

ll.ParcelMediaCommandList · 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.

function ParcelMediaCommandList(commandList: list): void

ParcelMediaQuery

ll.ParcelMediaQuery · 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.

function ParcelMediaQuery<const T extends readonly ParcelMediaQueryFlag[]>(query: T): MapParcelMediaQuery<T> | []

ParseString2List

ll.ParseString2List · 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.

function ParseString2List(src: string, separators: string[], spacers: string[]): string[]

ParseStringKeepNulls

ll.ParseStringKeepNulls · 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.

function ParseStringKeepNulls(src: string, separators: string[], spacers: string[]): string[]

ParticleSystem

ll.ParticleSystem · llParticleSystem

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

function ParticleSystem<const T extends readonly unknown[]>(rules: T & ParseParticleSystemParams<T>): void

PassCollisions

ll.PassCollisions · 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.

function PassCollisions(pass: number): void

PassTouches

ll.PassTouches · 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.

function PassTouches(pass: number): void

PatrolPoints

ll.PatrolPoints · llPatrolPoints

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

function PatrolPoints(patrolPoints: Vector[], options: list): void

PlaySound

ll.PlaySound · 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.

function PlaySound(sound: string, volume: number): void

PlaySoundSlave

ll.PlaySoundSlave · llPlaySoundSlave

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

function PlaySoundSlave(sound: string, volume: number): void

PointAt

ll.PointAt · llPointAt

Deprecated

This function is deprecated.

Directs the avatar owning the object to point at the vector pos.

function PointAt(pos: Vector): void

Pow

ll.Pow · llPow

Deprecated

Use '^' instead. Double precision; operator.

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

function Pow(base: number, exponent: number): number

PreloadSound

ll.PreloadSound · llPreloadSound

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

function PreloadSound(sound: string): void

Pursue

ll.Pursue · llPursue

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

function Pursue(target: UUID, options: list): void

PushObject

ll.PushObject · llPushObject

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

function PushObject(target: UUID, impulse: Vector, angImpulse: Vector, isLocal: boolean): void

R

ReadKeyValue

ll.ReadKeyValue · 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.

function ReadKeyValue(k: string): UUID

RefreshPrimURL

ll.RefreshPrimURL · llRefreshPrimURL

Deprecated

Use 'll.SetPrimMediaParams' instead.

Legacy function intended to reload the web page displayed on the prim's faces (currently non-functional).

function RefreshPrimURL(): void

RegionSay

ll.RegionSay · 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.

function RegionSay(channel: number, msg: string): void

RegionSayTo

ll.RegionSayTo · 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.

function RegionSayTo(target: UUID, channel: number, msg: string): void

ReleaseCamera

ll.ReleaseCamera · llReleaseCamera

Deprecated

Use 'll.ClearCameraParams' instead.

Deprecated. Intended to return camera control back to the avatar (use llClearCameraParams instead).

function ReleaseCamera(avatar: UUID): void

ReleaseControls

ll.ReleaseControls · llReleaseControls

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

function ReleaseControls(): void

ReleaseURL

ll.ReleaseURL · llReleaseURL

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

function ReleaseURL(url: string): void

RemoteDataReply

ll.RemoteDataReply · llRemoteDataReply

Deprecated

This function is deprecated.

Deprecated. Sends an XML-RPC reply on channel to message_id with payload string sdata and integer idata.

function RemoteDataReply(channel: UUID, messageId: UUID, sdata: string, idata: number): void

RemoteDataSetRegion

ll.RemoteDataSetRegion · llRemoteDataSetRegion

Deprecated

This function is deprecated.

Deprecated. Used with XML-RPC to reregister remote data channels if the object moves to another region.

function RemoteDataSetRegion(): void

RemoteLoadScript

ll.RemoteLoadScript · llRemoteLoadScript

Deprecated

This function is deprecated.

Deprecated.

function RemoteLoadScript(target: UUID, script: string, running: number, startParam: number): void

RemoteLoadScriptPin

ll.RemoteLoadScriptPin · 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).

function RemoteLoadScriptPin(target: UUID, script: string, pin: number, running: boolean, startParam: number): void

RemoveFromLandBanList

ll.RemoveFromLandBanList · llRemoveFromLandBanList

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

function RemoveFromLandBanList(avatar: UUID): void

RemoveFromLandPassList

ll.RemoveFromLandPassList · llRemoveFromLandPassList

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

function RemoveFromLandPassList(avatar: UUID): void

RemoveInventory

ll.RemoveInventory · llRemoveInventory

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

function RemoveInventory(item: string): void

RemoveVehicleFlags

ll.RemoveVehicleFlags · llRemoveVehicleFlags

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

function RemoveVehicleFlags(flags: number): void

ReplaceAgentEnvironment

ll.ReplaceAgentEnvironment · 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.

function ReplaceAgentEnvironment(agentId: UUID, transition: number, environment: string): number

ReplaceEnvironment

ll.ReplaceEnvironment · 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.

function ReplaceEnvironment(position: Vector, environment: string, trackNo: number, dayLength: number, dayOffset: number): number

ReplaceSubString

ll.ReplaceSubString · 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.

function ReplaceSubString(src: string, pattern: string, replacementPattern: string, count: number): string

RequestAgentData

ll.RequestAgentData · 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.

function RequestAgentData(id: UUID, data: number): UUID

RequestDisplayName

ll.RequestDisplayName · 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.

function RequestDisplayName(id: UUID): UUID

RequestExperiencePermissions

ll.RequestExperiencePermissions · 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.

function RequestExperiencePermissions(agent: UUID, name: string): void

RequestInventoryData

ll.RequestInventoryData · 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.

function RequestInventoryData(item: string): UUID

RequestPermissions

ll.RequestPermissions · 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.

function RequestPermissions(agent: UUID, permissions: number): void

RequestSecureURL

ll.RequestSecureURL · 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.

function RequestSecureURL(): UUID

RequestSimulatorData

ll.RequestSimulatorData · llRequestSimulatorData

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

function RequestSimulatorData(region: string, data: number): UUID

RequestURL

ll.RequestURL · llRequestURL

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

function RequestURL(): UUID

RequestUserKey

ll.RequestUserKey · 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.

function RequestUserKey(username: string): UUID

RequestUsername

ll.RequestUsername · 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.

function RequestUsername(id: UUID): UUID

ResetAnimationOverride

ll.ResetAnimationOverride · llResetAnimationOverride

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

function ResetAnimationOverride(animState: string): void

ResetLandBanList

ll.ResetLandBanList · llResetLandBanList

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

function ResetLandBanList(): void

ResetLandPassList

ll.ResetLandPassList · llResetLandPassList

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

function ResetLandPassList(): void

ResetOtherScript

ll.ResetOtherScript · llResetOtherScript

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

function ResetOtherScript(script: string): void

ResetScript

ll.ResetScript · llResetScript

Resets the current script.

function ResetScript(): void

ReturnObjectsByID

ll.ReturnObjectsByID · 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.

function ReturnObjectsByID(objects: UUID[]): number

ReturnObjectsByOwner

ll.ReturnObjectsByOwner · 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.

function ReturnObjectsByOwner(owner: UUID, scope: number): number

RezAtRoot

ll.RezAtRoot · 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.

function RezAtRoot(item: string, pos: Vector, vel: Vector, rot: Quaternion, startParam: number): void

RezObject

ll.RezObject · 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.

function RezObject(item: string, pos: Vector, vel: Vector, rot: Quaternion, startParam: number): void

RezObjectWithParams

ll.RezObjectWithParams · 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.

function RezObjectWithParams<const T extends readonly unknown[]>(item: string, options: T & ParseRezParams<T>): UUID

Rot2Angle

ll.Rot2Angle · llRot2Angle

Returns the angle, in radians, that q rotates.

function Rot2Angle(q: Quaternion): number

Rot2Axis

ll.Rot2Axis · llRot2Axis

Returns the unit vector axis that q rotates around.

function Rot2Axis(q: Quaternion): Vector

Rot2Euler

ll.Rot2Euler · llRot2Euler

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

function Rot2Euler(q: Quaternion): Vector

Rot2Fwd

ll.Rot2Fwd · llRot2Fwd

Deprecated

Use 'quaternion.tofwd' instead.

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

function Rot2Fwd(q: Quaternion): Vector

Rot2Left

ll.Rot2Left · llRot2Left

Deprecated

Use 'quaternion.toleft' instead.

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

function Rot2Left(q: Quaternion): Vector

Rot2Up

ll.Rot2Up · llRot2Up

Deprecated

Use 'quaternion.toup' instead.

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

function Rot2Up(q: Quaternion): Vector

RotBetween

ll.RotBetween · llRotBetween

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

function RotBetween(startVec: Vector, endVec: Vector): Quaternion

RotLookAt

ll.RotLookAt · 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.

function RotLookAt(targetDirection: Quaternion, strength: number, damping: number): void

RotTarget

ll.RotTarget · 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.

function RotTarget(rot: Quaternion, error: number): number

RotTargetRemove

ll.RotTargetRemove · llRotTargetRemove

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

function RotTargetRemove(handle: number): void

RotateTexture

ll.RotateTexture · llRotateTexture

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

function RotateTexture(angle: number, face: number): void

Round

ll.Round · llRound

Deprecated

Use 'math.round' instead. Fastcall.

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

function Round(val: number): number

S

SHA1String

ll.SHA1String · llSHA1String

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

function SHA1String(src: string): string

SHA256String

ll.SHA256String · llSHA256String

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

function SHA256String(src: string): string

SameGroup

ll.SameGroup · 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.

function SameGroup(uuid: UUID): boolean

Say

ll.Say · 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.

function Say(channel: number, msg: string): void

ScaleByFactor

ll.ScaleByFactor · 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.

function ScaleByFactor(scalingFactor: number): boolean

ScaleTexture

ll.ScaleTexture · 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.

function ScaleTexture(u: number, v: number, face: number): void

ScriptDanger

ll.ScriptDanger · 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.

function ScriptDanger(pos: Vector): boolean

ScriptProfiler

ll.ScriptProfiler · 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.

function ScriptProfiler(flags: number): void

SendRemoteData

ll.SendRemoteData · llSendRemoteData

Deprecated

This function is deprecated.

Deprecated. Sends an XML-RPC request to dest on channel, containing the channel ID as a string, integer idata, and string sdata. Returns a key representing the message_id.

function SendRemoteData(channel: UUID, dest: string, idata: number, sdata: string): UUID

Sensor

ll.Sensor · 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.

function Sensor(name: string, id: UUID, type: number, radius: number, arc: number): void

SensorRemove

ll.SensorRemove · llSensorRemove

Removes the periodic sensor previously configured by llSensorRepeat.

function SensorRemove(): void

SensorRepeat

ll.SensorRepeat · 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.

function SensorRepeat(name: string, id: UUID, type: number, radius: number, arc: number, rate: number): void

SetAgentEnvironment

ll.SetAgentEnvironment · 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.

function SetAgentEnvironment(agentId: UUID, transition: number, params: list): number

SetAgentRot

ll.SetAgentRot · llSetAgentRot

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

function SetAgentRot(rot: Quaternion, flags: number): void

SetAlpha

ll.SetAlpha · 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).

function SetAlpha(alpha: number, face: number): void

SetAngularVelocity

ll.SetAngularVelocity · 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.

function SetAngularVelocity(initialOmega: Vector, isLocal: boolean): void

SetAnimationOverride

ll.SetAnimationOverride · 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.

function SetAnimationOverride(animState: string, anim: string): void

SetBuoyancy

ll.SetBuoyancy · 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.

function SetBuoyancy(buoyancy: number): void

SetCameraAtOffset

ll.SetCameraAtOffset · llSetCameraAtOffset

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

function SetCameraAtOffset(offset: Vector): void

SetCameraEyeOffset

ll.SetCameraEyeOffset · llSetCameraEyeOffset

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

function SetCameraEyeOffset(offset: Vector): void

SetCameraParams

ll.SetCameraParams · llSetCameraParams

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

function SetCameraParams<const T extends readonly unknown[]>(rules: T & ParseCameraParams<T>): void

SetClickAction

ll.SetClickAction · llSetClickAction

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

function SetClickAction(action: number): void

SetColor

ll.SetColor · llSetColor

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

function SetColor(color: Vector, face: number): void

SetContentType

ll.SetContentType · 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).

function SetContentType(requestId: UUID, contentType: number): void

SetDamage

ll.SetDamage · 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.

function SetDamage(damage: number): void

SetEnvironment

ll.SetEnvironment · 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.

function SetEnvironment(position: Vector, params: list): number

SetExperienceKey

ll.SetExperienceKey · llSetExperienceKey

Deprecated

This function is deprecated.

function SetExperienceKey(experienceid: UUID): number

SetForce

ll.SetForce · 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.

function SetForce(force: Vector, isLocal: boolean): void

SetForceAndTorque

ll.SetForceAndTorque · 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.

function SetForceAndTorque(force: Vector, torque: Vector, isLocal: boolean): void

SetGroundTexture

ll.SetGroundTexture · llSetGroundTexture

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

function SetGroundTexture(changes: list): number

SetHoverHeight

ll.SetHoverHeight · 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.

function SetHoverHeight(height: number, water: boolean, tau: number): void

SetInventoryPermMask

ll.SetInventoryPermMask · llSetInventoryPermMask

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

function SetInventoryPermMask(item: string, group: number, flags: number): void

SetKeyframedMotion

ll.SetKeyframedMotion · 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.

function SetKeyframedMotion(keyframes: list, options: list): void

SetLinkAlpha

ll.SetLinkAlpha · llSetLinkAlpha

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

function SetLinkAlpha(link: number, alpha: number, face: number): void

SetLinkCamera

ll.SetLinkCamera · llSetLinkCamera

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

function SetLinkCamera(link: number, eye: Vector, at: Vector): void

SetLinkColor

ll.SetLinkColor · llSetLinkColor

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

function SetLinkColor(link: number, color: Vector, face: number): void

SetLinkGLTFOverrides

ll.SetLinkGLTFOverrides · llSetLinkGLTFOverrides

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

function SetLinkGLTFOverrides<const T extends readonly unknown[]>(link: number, face: number, params: T & ParseGltfOverrideParams<T>): void

SetLinkMedia

ll.SetLinkMedia · 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.

function SetLinkMedia(link: number, face: number, params: list): number

SetLinkPrimitiveParams

ll.SetLinkPrimitiveParams · llSetLinkPrimitiveParams

Deprecated

Use 'll.SetLinkPrimitiveParamsFast' instead.

Deprecated (use llSetLinkPrimitiveParamsFast instead). Sets primitive parameters for the linked prim link according to rules.

function SetLinkPrimitiveParams<const T extends readonly unknown[]>(link: number, rules: T & ParsePrimParams<T>): void

SetLinkPrimitiveParamsFast

ll.SetLinkPrimitiveParamsFast · llSetLinkPrimitiveParamsFast

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

function SetLinkPrimitiveParamsFast<const T extends readonly unknown[]>(link: number, rules: T & ParsePrimParams<T>): void

SetLinkRenderMaterial

ll.SetLinkRenderMaterial · 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.

function SetLinkRenderMaterial(link: number, material: string, face: number): void

SetLinkSitFlags

ll.SetLinkSitFlags · llSetLinkSitFlags

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

function SetLinkSitFlags(link: number, flags: number): void

SetLinkTexture

ll.SetLinkTexture · llSetLinkTexture

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

function SetLinkTexture(link: number, texture: string, face: number): void

SetLinkTextureAnim

ll.SetLinkTextureAnim · 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.

function SetLinkTextureAnim(link: number, mode: number, face: number, sizex: number, sizey: number, start: number, length: number, rate: number): void

SetLocalRot

ll.SetLocalRot · llSetLocalRot

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

function SetLocalRot(rot: Quaternion): void

SetObjectDesc

ll.SetObjectDesc · llSetObjectDesc

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

function SetObjectDesc(description: string): void

SetObjectName

ll.SetObjectName · llSetObjectName

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

function SetObjectName(name: string): void

SetObjectPermMask

ll.SetObjectPermMask · llSetObjectPermMask

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

function SetObjectPermMask(group: number, flags: number): void

SetParcelForSale

ll.SetParcelForSale · 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.

function SetParcelForSale(forSale: boolean, options: list): number

SetParcelMusicURL

ll.SetParcelMusicURL · llSetParcelMusicURL

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

function SetParcelMusicURL(url: string): void

SetPayPrice

ll.SetPayPrice · 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.

function SetPayPrice(price: number, quickPayButtons: number[]): void

SetPhysicsMaterial

ll.SetPhysicsMaterial · 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.

function SetPhysicsMaterial(mask: number, gravityMultiplier: number, restitution: number, friction: number, density: number): void

SetPos

ll.SetPos · 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.

function SetPos(pos: Vector): void

SetPrimMediaParams

ll.SetPrimMediaParams · llSetPrimMediaParams

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

function SetPrimMediaParams(face: number, params: list): number

SetPrimURL

ll.SetPrimURL · llSetPrimURL

Deprecated

Use 'll.SetPrimMediaParams' instead.

Deprecated (use llSetPrimMediaParams instead). Updates the URL displayed on the prim's faces.

function SetPrimURL(url: string): void

SetPrimitiveParams

ll.SetPrimitiveParams · llSetPrimitiveParams

Deprecated

Use 'll.SetLinkPrimitiveParamsFast' instead.

Deprecated (use llSetLinkPrimitiveParamsFast instead). Sets the prim's attributes according to rules.

function SetPrimitiveParams<const T extends readonly unknown[]>(rules: T & ParsePrimParams<T>): void

SetRegionPos

ll.SetRegionPos · 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.

function SetRegionPos(position: Vector): boolean

SetRemoteScriptAccessPin

ll.SetRemoteScriptAccessPin · llSetRemoteScriptAccessPin

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

function SetRemoteScriptAccessPin(pin: number): void

SetRenderMaterial

ll.SetRenderMaterial · 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.

function SetRenderMaterial(material: string, face: number): void

SetRot

ll.SetRot · 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.

function SetRot(rot: Quaternion): void

SetScale

ll.SetScale · llSetScale

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

function SetScale(size: Vector): void

SetScriptState

ll.SetScriptState · 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.

function SetScriptState(script: string, running: boolean): void

SetSitText

ll.SetSitText · llSetSitText

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

function SetSitText(text: string): void

SetSoundQueueing

ll.SetSoundQueueing · 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.

function SetSoundQueueing(queue: boolean): void

SetSoundRadius

ll.SetSoundRadius · llSetSoundRadius

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

function SetSoundRadius(radius: number): void

SetStatus

ll.SetStatus · llSetStatus

Sets the object status attributes specified by status to value.

function SetStatus(status: number, value: boolean): void

SetText

ll.SetText · llSetText

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

function SetText(text: string, color: Vector, alpha: number): void

SetTexture

ll.SetTexture · llSetTexture

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

function SetTexture(texture: string, face: number): void

SetTextureAnim

ll.SetTextureAnim · 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.

function SetTextureAnim(mode: number, face: number, sizex: number, sizey: number, start: number, length: number, rate: number): void

SetTorque

ll.SetTorque · 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.

function SetTorque(torque: Vector, isLocal: boolean): void

SetTouchText

ll.SetTouchText · llSetTouchText

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

function SetTouchText(text: string): void

SetVehicleFlags

ll.SetVehicleFlags · llSetVehicleFlags

Enables the vehicle flags specified in the Flags bitmask.

function SetVehicleFlags(flags: number): void

SetVehicleFloatParam

ll.SetVehicleFloatParam · llSetVehicleFloatParam

Sets the specified vehicle float parameter param to value.

function SetVehicleFloatParam(param: number, value: number): void

SetVehicleRotationParam

ll.SetVehicleRotationParam · llSetVehicleRotationParam

Sets the specified vehicle rotation parameter param to rot.

function SetVehicleRotationParam(param: number, rot: Quaternion): void

SetVehicleType

ll.SetVehicleType · llSetVehicleType

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

function SetVehicleType(type: number): void

SetVehicleVectorParam

ll.SetVehicleVectorParam · llSetVehicleVectorParam

Sets the specified vehicle vector parameter param to vec.

function SetVehicleVectorParam(param: number, vec: Vector): void

SetVelocity

ll.SetVelocity · 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.

function SetVelocity(velocity: Vector, isLocal: boolean): void

Shout

ll.Shout · 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.

function Shout(channel: number, msg: string): void

SignRSA

ll.SignRSA · 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.

function SignRSA(privateKey: string, msg: string, algorithm: string): string

Sin

ll.Sin · llSin

Deprecated

Use 'math.sin' instead. Double precision; fastcall.

Returns the sine of theta. Theta is in radians.

function Sin(theta: number): number

ll.SitOnLink · 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.

function SitOnLink(agentId: UUID, link: number): number

SitTarget

ll.SitTarget · 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.

function SitTarget(offset: Vector, rot: Quaternion): void

Sleep

ll.Sleep · 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.

function Sleep(sec: number): void

Sound

ll.Sound · llSound

Deprecated

Use 'll.PlaySound' instead.

Deprecated (use llPlaySound instead). Plays the specified sound at volume, with options to loop or queue the sound.

function Sound(sound: string, volume: number, queue: boolean, loop: boolean): void

SoundPreload

ll.SoundPreload · llSoundPreload

Deprecated

Use 'll.PreloadSound' instead.

Deprecated (use llPreloadSound instead). Preloads the specified sound on viewers within range.

function SoundPreload(sound: string): void

Sqrt

ll.Sqrt · llSqrt

Deprecated

Use 'math.sqrt' instead. Double precision; fastcall.

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

function Sqrt(val: number): number

StartAnimation

ll.StartAnimation · 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).

function StartAnimation(anim: string): void

StartObjectAnimation

ll.StartObjectAnimation · llStartObjectAnimation

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

function StartObjectAnimation(anim: string): void

StopAnimation

ll.StopAnimation · 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).

function StopAnimation(anim: string): void

StopHover

ll.StopHover · llStopHover

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

function StopHover(): void

StopLookAt

ll.StopLookAt · llStopLookAt

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

function StopLookAt(): void

StopMoveToTarget

ll.StopMoveToTarget · llStopMoveToTarget

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

function StopMoveToTarget(): void

StopObjectAnimation

ll.StopObjectAnimation · llStopObjectAnimation

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

function StopObjectAnimation(anim: string): void

StopPointAt

ll.StopPointAt · llStopPointAt

Deprecated

This function is deprecated.

Stops the avatar who owns the object from pointing.

function StopPointAt(): void

StopSound

ll.StopSound · llStopSound

Stops playback of the currently playing attached sound.

function StopSound(): void

StringLength

ll.StringLength · llStringLength

Deprecated

Use 'utf8.len' or '#' or 'string.len' instead.

Returns the number of unicode codepoints in the string.

function StringLength(str: string): number

StringToBase64

ll.StringToBase64 · llStringToBase64

Deprecated

Use 'llbase64.encode' instead.

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

function StringToBase64(str: string): string

StringTrim

ll.StringTrim · 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.

function StringTrim(src: string, type: number): string

SubStringIndex

ll.SubStringIndex · llSubStringIndex

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

function SubStringIndex(source: string, pattern: string): number | undefined

sRGB2Linear

ll.sRGB2Linear · llsRGB2Linear

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

function sRGB2Linear(color: Vector): Vector

T

TakeCamera

ll.TakeCamera · llTakeCamera

Deprecated

Use 'll.SetCameraParams' instead.

Deprecated (use llSetCameraParams instead). Formerly used to take control of the agent's camera.

function TakeCamera(avatar: UUID): void

TakeControls

ll.TakeControls · 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.

function TakeControls(controls: number, accept: boolean, passOn: boolean): void

Tan

ll.Tan · llTan

Deprecated

Use 'math.tan' instead. Double precision; fastcall.

Returns the tangent of theta. Theta is in radians.

function Tan(theta: number): number

Target

ll.Target · 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.

function Target(position: Vector, range: number): number

TargetOmega

ll.TargetOmega · 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.

function TargetOmega(axis: Vector, spinrate: number, gain: number): void

TargetRemove

ll.TargetRemove · llTargetRemove

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

function TargetRemove(handle: number): void

TargetedEmail

ll.TargetedEmail · 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.

function TargetedEmail(target: number, subject: string, msg: string): void

TeleportAgent

ll.TeleportAgent · 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.

function TeleportAgent(agent: UUID, landmark: string, position: Vector, lookAt: Vector): void

TeleportAgentGlobalCoords

ll.TeleportAgentGlobalCoords · 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.

function TeleportAgentGlobalCoords(agent: UUID, globalCoordinates: Vector, regionCoordinates: Vector, lookAt: Vector): void

TeleportAgentHome

ll.TeleportAgentHome · 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).

function TeleportAgentHome(avatar: UUID): void

TextBox

ll.TextBox · 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.

function TextBox(agent: UUID, msg: string, channel: number): void

ToLower

ll.ToLower · llToLower

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

function ToLower(src: string): string

ToUpper

ll.ToUpper · llToUpper

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

function ToUpper(src: string): string

TransferLindenDollars

ll.TransferLindenDollars · 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.

function TransferLindenDollars(destination: UUID, amount: number): UUID

TransferOwnership

ll.TransferOwnership · 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.

function TransferOwnership(agent: UUID, flags: number, options: list): number

TriggerSound

ll.TriggerSound · 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.

function TriggerSound(sound: string, volume: number): void

TriggerSoundLimited

ll.TriggerSoundLimited · 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.

function TriggerSoundLimited(sound: string, volume: number, topNorthEast: Vector, bottomSouthWest: Vector): void

U

UnSit

ll.UnSit · 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.

function UnSit(id: UUID): void

UnescapeURL

ll.UnescapeURL · llUnescapeURL

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

function UnescapeURL(url: string): string

UpdateCharacter

ll.UpdateCharacter · llUpdateCharacter

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

function UpdateCharacter<const T extends readonly unknown[]>(options: T & ParseCharacterParams<T>): void

UpdateKeyValue

ll.UpdateKeyValue · 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.

function UpdateKeyValue(k: string, v: string, checked: boolean, originalValue: string): UUID

V

VecDist

ll.VecDist · llVecDist

Deprecated

Use 'vector.magnitude' instead. It's a fastcall.

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

function VecDist(vecA: Vector, vecB: Vector): number

VecMag

ll.VecMag · llVecMag

Deprecated

Use 'vector.magnitude' instead. It's a fastcall.

Returns the magnitude (geometric length) of vec.

function VecMag(vec: Vector): number

VecNorm

ll.VecNorm · llVecNorm

Deprecated

Use 'vector.normalize' instead. It's a fastcall.

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

function VecNorm(vec: Vector): Vector

VerifyRSA

ll.VerifyRSA · 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.

function VerifyRSA(publicKey: string, msg: string, signature: string, algorithm: string): boolean

VolumeDetect

ll.VolumeDetect · 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).

function VolumeDetect(detect: boolean): void

W

WanderWithin

ll.WanderWithin · llWanderWithin

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

function WanderWithin(origin: Vector, dist: Vector, options: list): void

Water

ll.Water · llWater

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

function Water(offset: Vector): number

Whisper

ll.Whisper · 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.

function Whisper(channel: number, msg: string): void

Wind

ll.Wind · llWind

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

function Wind(offset: Vector): Vector

WorldPosToHUD

ll.WorldPosToHUD · 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.

function WorldPosToHUD(worldPos: Vector): Vector

X

XorBase64

ll.XorBase64 · 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.

function XorBase64(str1: string, str2: string): string

XorBase64Strings

ll.XorBase64Strings · llXorBase64Strings

Deprecated

Use 'll.XorBase64' instead.

Deprecated (use llXorBase64 instead). Retained for backwards compatibility. Incorrectly performs a bitwise exclusive OR (XOR) on Base64 strings str1 and str2.

function XorBase64Strings(str1: string, str2: string): string

XorBase64StringsCorrect

ll.XorBase64StringsCorrect · llXorBase64StringsCorrect

Deprecated

Use 'll.XorBase64' instead.

Deprecated (use llXorBase64 instead). Correctly performs (unless nulls are present) a bitwise exclusive OR (XOR) on Base64 strings str1 and str2.

function XorBase64StringsCorrect(str1: string, str2: string): string

On this page

AAbsAcosAddToLandBanListAddToLandPassListAdjustDamageAdjustSoundVolumeAgentInExperienceAllowInventoryDropAngleBetweenApplyImpulseApplyRotationalImpulseAsinAtan2AttachToAvatarAttachToAvatarTempAvatarOnLinkSitTargetAvatarOnSitTargetAxes2RotAxisAngle2RotBBase64ToIntegerBase64ToStringBreakAllLinksBreakLinkCCSV2ListCastRayCeilCharClearCameraParamsClearExperienceClearExperiencePermissionsClearLinkMediaClearPrimMediaCloseRemoteDataChannelCloudCollisionFilterCollisionSoundCollisionSpriteComputeHashCosCreateCharacterCreateKeyValueCreateLinkDDamageDataSizeKeyValueDeleteCharacterDeleteKeyValueDeleteSubListDeleteSubStringDerezObjectDetachFromAvatarDetectedDamageDetectedGrabDetectedGroupDetectedKeyDetectedLinkNumberDetectedNameDetectedOwnerDetectedPosDetectedRezzerDetectedRotDetectedTouchBinormalDetectedTouchFaceDetectedTouchNormalDetectedTouchPosDetectedTouchSTDetectedTouchUVDetectedTypeDetectedVelDialogDieDumpList2StringEEdgeOfWorldEjectFromLandEmailEscapeURLEuler2RotEvadeExecCharacterCmdFFabsFindNotecardTextCountFindNotecardTextSyncFleeFromFloorForceMouselookFrandGGenerateKeyGetAccelGetAgentInfoGetAgentLanguageGetAgentListGetAgentSizeGetAlphaGetAnimationGetAnimationListGetAnimationOverrideGetAttachedGetAttachedListGetAttachedListFilteredGetBoundingBoxGetCameraAspectGetCameraFOVGetCameraPosGetCameraRotGetCenterOfMassGetClosestNavPointGetColorGetCreatorGetDateGetDayLengthGetDayOffsetGetDisplayNameGetEnergyGetEnvGetEnvironmentGetExperienceDetailsGetExperienceErrorMessageGetExperienceListGetForceGetFreeMemoryGetFreeURLsGetGMTclockGetGeometricCenterGetHTTPHeaderGetHealthGetInventoryAcquireTimeGetInventoryCreatorGetInventoryDescGetInventoryKeyGetInventoryNameGetInventoryNumberGetInventoryPermMaskGetInventoryTypeGetKeyGetLandOwnerAtGetLinkKeyGetLinkMediaGetLinkNameGetLinkNumberGetLinkNumberOfSidesGetLinkPrimitiveParamsGetLinkSitFlagsGetListEntryTypeGetListLengthGetLocalPosGetLocalRotGetMassGetMassMKSGetMaxScaleFactorGetMemoryLimitGetMinScaleFactorGetMoonDirectionGetMoonRotationGetNextEmailGetNotecardLineGetNotecardLineSyncGetNumberOfNotecardLinesGetNumberOfPrimsGetNumberOfSidesGetObjectAnimationNamesGetObjectDescGetObjectDetailsGetObjectLinkKeyGetObjectMassGetObjectNameGetObjectPermMaskGetObjectPrimCountGetOmegaGetOwnerGetOwnerKeyGetParcelDetailsGetParcelFlagsGetParcelMaxPrimsGetParcelMusicURLGetParcelPrimCountGetParcelPrimOwnersGetPermissionsGetPermissionsKeyGetPhysicsMaterialGetPosGetPrimMediaParamsGetPrimitiveParamsGetRegionAgentCountGetRegionCornerGetRegionDayLengthGetRegionDayOffsetGetRegionFPSGetRegionFlagsGetRegionMoonDirectionGetRegionMoonRotationGetRegionNameGetRegionSunDirectionGetRegionSunRotationGetRegionTimeDilationGetRegionTimeOfDayGetRenderMaterialGetRootPositionGetRootRotationGetRotGetSPMaxMemoryGetScaleGetScriptNameGetScriptStateGetSimStatsGetSimulatorHostnameGetStartParameterGetStartStringGetStaticPathGetStatusGetSubStringGetSunDirectionGetSunRotationGetTextureGetTextureOffsetGetTextureRotGetTextureScaleGetTimeGetTimeOfDayGetTimestampGetTorqueGetUnixTimeGetUsedMemoryGetUsernameGetVelGetVisualParamsGetWallclockGiveAgentInventoryGiveInventoryGiveInventoryListGiveMoneyGodLikeRezObjectGroundGroundContourGroundNormalGroundRepelGroundSlopeHHMACHTTPRequestHTTPResponseHashIInsertStringInstantMessageIntegerToBase64IsFriendIsLinkGLTFMaterialJJson2ListJsonGetValueJsonSetValueJsonValueTypeKKey2NameKeyCountKeyValueKeysKeyValueLLinear2sRGBLinkAdjustSoundVolumeLinkParticleSystemLinkPlaySoundLinkSetSoundQueueingLinkSetSoundRadiusLinkSitTargetLinkStopSoundLinksetDataAvailableLinksetDataCountFoundLinksetDataCountKeysLinksetDataDeleteLinksetDataDeleteFoundLinksetDataDeleteProtectedLinksetDataFindKeysLinksetDataListKeysLinksetDataReadLinksetDataReadProtectedLinksetDataResetLinksetDataWriteLinksetDataWriteProtectedList2CSVList2FloatList2IntegerList2JsonList2KeyList2ListList2ListSliceList2ListStridedList2RotList2StringList2VectorListFindListListFindListNextListFindStridedListInsertListListRandomizeListReplaceListListSortListSortStridedListStatisticsListenListenControlListenRemoveLoadURLLogLog10LookAtLoopSoundLoopSoundMasterLoopSoundSlaveMMD5StringMakeExplosionMakeFireMakeFountainMakeSmokeManageEstateAccessMapBeaconMapDestinationMessageLinkedMinEventDelayModPowModifyLandMoveToTargetNName2KeyNavigateToOOffsetTextureOpenFloaterOpenRemoteDataChannelOrdOverMyLandOwnerSayPParcelMediaCommandListParcelMediaQueryParseString2ListParseStringKeepNullsParticleSystemPassCollisionsPassTouchesPatrolPointsPlaySoundPlaySoundSlavePointAtPowPreloadSoundPursuePushObjectRReadKeyValueRefreshPrimURLRegionSayRegionSayToReleaseCameraReleaseControlsReleaseURLRemoteDataReplyRemoteDataSetRegionRemoteLoadScriptRemoteLoadScriptPinRemoveFromLandBanListRemoveFromLandPassListRemoveInventoryRemoveVehicleFlagsReplaceAgentEnvironmentReplaceEnvironmentReplaceSubStringRequestAgentDataRequestDisplayNameRequestExperiencePermissionsRequestInventoryDataRequestPermissionsRequestSecureURLRequestSimulatorDataRequestURLRequestUserKeyRequestUsernameResetAnimationOverrideResetLandBanListResetLandPassListResetOtherScriptResetScriptReturnObjectsByIDReturnObjectsByOwnerRezAtRootRezObjectRezObjectWithParamsRot2AngleRot2AxisRot2EulerRot2FwdRot2LeftRot2UpRotBetweenRotLookAtRotTargetRotTargetRemoveRotateTextureRoundSSHA1StringSHA256StringSameGroupSayScaleByFactorScaleTextureScriptDangerScriptProfilerSendRemoteDataSensorSensorRemoveSensorRepeatSetAgentEnvironmentSetAgentRotSetAlphaSetAngularVelocitySetAnimationOverrideSetBuoyancySetCameraAtOffsetSetCameraEyeOffsetSetCameraParamsSetClickActionSetColorSetContentTypeSetDamageSetEnvironmentSetExperienceKeySetForceSetForceAndTorqueSetGroundTextureSetHoverHeightSetInventoryPermMaskSetKeyframedMotionSetLinkAlphaSetLinkCameraSetLinkColorSetLinkGLTFOverridesSetLinkMediaSetLinkPrimitiveParamsSetLinkPrimitiveParamsFastSetLinkRenderMaterialSetLinkSitFlagsSetLinkTextureSetLinkTextureAnimSetLocalRotSetObjectDescSetObjectNameSetObjectPermMaskSetParcelForSaleSetParcelMusicURLSetPayPriceSetPhysicsMaterialSetPosSetPrimMediaParamsSetPrimURLSetPrimitiveParamsSetRegionPosSetRemoteScriptAccessPinSetRenderMaterialSetRotSetScaleSetScriptStateSetSitTextSetSoundQueueingSetSoundRadiusSetStatusSetTextSetTextureSetTextureAnimSetTorqueSetTouchTextSetVehicleFlagsSetVehicleFloatParamSetVehicleRotationParamSetVehicleTypeSetVehicleVectorParamSetVelocityShoutSignRSASinSitOnLinkSitTargetSleepSoundSoundPreloadSqrtStartAnimationStartObjectAnimationStopAnimationStopHoverStopLookAtStopMoveToTargetStopObjectAnimationStopPointAtStopSoundStringLengthStringToBase64StringTrimSubStringIndexsRGB2LinearTTakeCameraTakeControlsTanTargetTargetOmegaTargetRemoveTargetedEmailTeleportAgentTeleportAgentGlobalCoordsTeleportAgentHomeTextBoxToLowerToUpperTransferLindenDollarsTransferOwnershipTriggerSoundTriggerSoundLimitedUUnSitUnescapeURLUpdateCharacterUpdateKeyValueVVecDistVecMagVecNormVerifyRSAVolumeDetectWWanderWithinWaterWhisperWindWorldPosToHUDXXorBase64XorBase64StringsXorBase64StringsCorrect