Prim Target
Read and change properties of the prim containing the script.
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
Badges
key llAvatarOnSitTarget()Returns the UUID of the avatar seated on the prim's sit target (defined viallSitTarget), orNULL_KEYif no avatar is sitting there or the prim lacks a sit target.functioninteger llClearPrimMedia(integer face)Deletes the media and clears all parameters from the specified face. Returns an integer STATUS_* flag detailing the success or failure of the operation.functionS (Sleeps 1s)float llGetAlpha(integer face)Returns a float representing the Blinn-Phong alpha (transparency) of face. If face isALL_SIDES, returns the mean average of all faces.functionvector llGetColor(integer face)Returns the Blinn-Phong RGB color vector of face (values between 0.0 and 1.0). If face isALL_SIDES, returns the mean average of all faces.functionkey llGetCreator()Returns the key (UUID) of the prim's original creator.functionkey llGetKey()Returns the key (UUID) of the prim containing the script.functioninteger llGetLinkNumber()Returns the integer link number of the prim containing the script (0 for unlinked, 1 for the root, and 2+ for children).functionvector 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).functionrotation 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.functioninteger llGetNumberOfSides()Returns an integer representing the total number of sides (faces) of the prim containing the script.functionstring llGetObjectDesc()Returns a string containing the description of the specific prim containing the script.functionstring llGetObjectName()Returns a string containing the name of the specific prim containing the script.functionlist llGetPhysicsMaterial()Returns a list of the format[float gravity_multiplier, float restitution, float friction, float density]detailing the physical characteristics of the object.functionvector llGetPos()Returns a vector representing the current position of the object in region coordinates.functionlist llGetPrimMediaParams(integer face, list params)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.functionS (Sleeps 1s)list llGetPrimitiveParams(list params)Returns a list of primitive attribute values matching the requested params list.functionS (Sleeps 0.2s)string llGetRenderMaterial(integer face)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).functionrotation llGetRot()Returns a rotation representing the prim's orientation relative to the region's axes.functionvector llGetScale()Returns a vector representing the physical scale (dimensions in meters) of the prim containing the script.functionstring llGetTexture(integer face)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).functionvector llGetTextureOffset(integer face)Returns a vector containing the texture offsets of face in the X (horizontal U) and Y (vertical V) components (Z is unused).functionfloat llGetTextureRot(integer face)Returns a float representing the texture rotation angle (in radians) on face.functionvector llGetTextureScale(integer face)Returns a vector containing the texture scales of face in the X and Y components (Z is unused).functionllOffsetTexture(float u, float v, integer face)Sets the texture horizontal (u) and vertical (v) offsets for the chosen face. If face isALL_SIDES, offsets all faces.functionS (Sleeps 0.2s)llRemoteLoadScriptPin(key target, string script, integer pin, integer running, integer start_param)Copies the script into target, setting it running (if running isTRUE) with the start_param, provided the script owner has modify permissions on target and target's PIN matches pin (set viallSetRemoteScriptAccessPin).functionS (Sleeps 3s)llRotateTexture(float angle, integer face)Sets the texture rotation of face to the specified angle (in radians). If face isALL_SIDES, rotates the texture on all faces.functionS (Sleeps 0.2s)llScaleTexture(float u, float v, integer face)Sets the diffuse texture horizontal u and vertical v scales (repeats) on the specified face of the prim. Setting face toALL_SIDESupdates all sides. Negative scale values flip the texture.functionS (Sleeps 0.2s)llSetAlpha(float alpha, integer face)Sets the diffuse texture alpha (opacity) of face. If face isALL_SIDES, applies to all faces. Values are clamped between 0.1 and 1.0 (where 1.0 is fully opaque).functionllSetColor(vector color, integer face)Sets the Blinn-Phong diffuse RGB color of face. If face isALL_SIDES, applies the color to all faces.functionllSetLocalRot(rotation rot)Sets the rotation of a child prim relative to its root prim using rot.functionS (Sleeps 0.2s)llSetObjectDesc(string description)Sets the description of the prim containing the script to description (limited to 127 characters).functionllSetObjectName(string name)Sets the name of the prim containing the script to name.functionllSetPhysicsMaterial(integer mask, float gravity_multiplier, float restitution, float friction, float density)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.functionllSetPos(vector pos)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.functionS (Sleeps 0.2s)integer llSetPrimMediaParams(integer face, list params)Sets the media parameters specified by params on the designated face of the prim. Returns an integer STATUS_* flag detailing success or failure.functionS (Sleeps 1s)integer llSetRegionPos(vector position)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). ReturnsTRUEon success orFALSEon failure.functionllSetRenderMaterial(string material, integer face)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.functionS (Sleeps 0.2s)llSetRot(rotation rot)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.functionS (Sleeps 0.2s)llSetScale(vector size)Sets the physical scale (dimensions) of the prim containing the script to size.functionllSetSitText(string text)Displays the string text instead of 'Sit' (or 'Sit Here') in the viewer's right-click context menu.functionllSetTexture(string texture, integer face)Applies the Blinn-Phong diffuse texture to face of the prim.functionS (Sleeps 0.2s)llSetTextureAnim(integer mode, integer face, integer sizex, integer sizey, float start, float length, float rate)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.functionllSitTarget(vector offset, rotation rot)Sets the sit target position (offset) and rotation (rot) relative to the prim's position and orientation. Clears the sit target if offset isZERO_VECTOR.function
No matching entries. Try a different term or filter.