Prim Target
Read and change properties of the prim containing the script.
Feature: Prims
What do you want to do?
vector llGetPos()Returns a vector representing the current position of the object in region coordinates.rotation llGetRot()Returns a rotation representing the prim's orientation relative to the region's axes.llSetScale(vector size)Sets the physical scale (dimensions) of the prim containing the script to size.Reference
43 topic entries
key llAvatarOnSitTarget()functionReturns the UUID of the avatar seated on the prim's sit target (defined via
llSitTarget), orNULL_KEYif no avatar is sitting there or the prim lacks a sit target.integer llClearPrimMedia(integer face)functionDeletes the media and clears all parameters from the specified face. Returns an integer STATUS_* flag detailing the success or failure of the operation.
float llGetAlpha(integer face)functionReturns a float representing the Blinn-Phong alpha (transparency) of face. If face is
ALL_SIDES, returns the mean average of all faces.vector llGetColor(integer face)functionReturns 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.key llGetCreator()functionReturns the key (UUID) of the prim's original creator.
key llGetKey()functionReturns the key (UUID) of the prim containing the script.
integer llGetLinkNumber()functionReturns the integer link number of the prim containing the script (0 for unlinked, 1 for the root, and 2+ for children).
vector llGetLocalPos()functionReturns 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).
rotation llGetLocalRot()functionReturns 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.
integer llGetNumberOfSides()functionReturns an integer representing the total number of sides (faces) of the prim containing the script.
string llGetObjectDesc()functionReturns a string containing the description of the specific prim containing the script.
string llGetObjectName()functionReturns a string containing the name of the specific prim containing the script.
list llGetPhysicsMaterial()functionReturns a list of the format
[float gravity_multiplier, float restitution, float friction, float density]detailing the physical characteristics of the object.vector llGetPos()functionReturns a vector representing the current position of the object in region coordinates.
list llGetPrimMediaParams(integer face, list params)functionReturns 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.
list llGetPrimitiveParams(list params)functionReturns a list of primitive attribute values matching the requested params list.
string llGetRenderMaterial(integer face)functionReturns 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).
rotation llGetRot()functionReturns a rotation representing the prim's orientation relative to the region's axes.
vector llGetScale()functionReturns a vector representing the physical scale (dimensions in meters) of the prim containing the script.
string llGetTexture(integer face)functionReturns 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).
vector llGetTextureOffset(integer face)functionReturns a vector containing the texture offsets of face in the X (horizontal U) and Y (vertical V) components (Z is unused).
float llGetTextureRot(integer face)functionReturns a float representing the texture rotation angle (in radians) on face.
vector llGetTextureScale(integer face)functionReturns a vector containing the texture scales of face in the X and Y components (Z is unused).
llOffsetTexture(float u, float v, integer face)functionSets the texture horizontal (u) and vertical (v) offsets for the chosen face. If face is
ALL_SIDES, offsets all faces.llRemoteLoadScriptPin(key target, string script, integer pin, integer running, integer start_param)functionCopies 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 viallSetRemoteScriptAccessPin).llRotateTexture(float angle, integer face)functionSets the texture rotation of face to the specified angle (in radians). If face is
ALL_SIDES, rotates the texture on all faces.llScaleTexture(float u, float v, integer face)functionSets the diffuse texture horizontal u and vertical v scales (repeats) on the specified face of the prim. Setting face to
ALL_SIDESupdates all sides. Negative scale values flip the texture.llSetAlpha(float alpha, integer face)functionSets 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).llSetColor(vector color, integer face)functionSets the Blinn-Phong diffuse RGB color of face. If face is
ALL_SIDES, applies the color to all faces.llSetLocalRot(rotation rot)functionSets the rotation of a child prim relative to its root prim using rot.
llSetObjectDesc(string description)functionSets the description of the prim containing the script to description (limited to 127 characters).
llSetObjectName(string name)functionSets the name of the prim containing the script to name.
llSetPhysicsMaterial(integer mask, float gravity_multiplier, float restitution, float friction, float density)functionConfigures the physical characteristics of an object. The mask bitfield specifies which of the other parameters (gravity_multiplier, restitution, friction, or density) should be applied to the object.
llSetPos(vector pos)functionMoves 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.
integer llSetPrimMediaParams(integer face, list params)functionSets the media parameters specified by params on the designated face of the prim. Returns an integer STATUS_* flag detailing success or failure.
integer llSetRegionPos(vector position)functionTries 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
TRUEon success orFALSEon failure.llSetRenderMaterial(string material, integer face)functionApplies material (UUID or inventory name) to face of the prim. Note: This clears most PRIM_GLTF_* properties on the face except for repeats, offsets, and rotation.
llSetRot(rotation rot)functionSets the rotation of the prim to rot. If in a child prim, rot is treated as root-relative; if in the root prim of a non-physical object, rotates the entire object.
llSetScale(vector size)functionSets the physical scale (dimensions) of the prim containing the script to size.
llSetSitText(string text)functionDisplays the string text instead of 'Sit' (or 'Sit Here') in the viewer's right-click context menu.
llSetTexture(string texture, integer face)functionApplies the Blinn-Phong diffuse texture to face of the prim.
llSetTextureAnim(integer mode, integer face, integer sizex, integer sizey, float start, float length, float rate)functionAnimates 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.
llSitTarget(vector offset, rotation rot)functionSets 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.
No matching entries. Try a different term or filter.