Operate on one link number at a time.
integer LINK_ROOT = 1; // Refers to the root prim of the linkset.integer LINK_THIS = -4; // Refers specifically to the single prim containing the running script.
Constants
| Constant | Type | Value | Description |
|---|---|---|---|
LINK_ROOT | integer | 1 | Refers to the root prim of the linkset. |
LINK_THIS | integer | -4 | Refers specifically to the single prim containing the running script. |
Used by
llAvatarOnLinkSitTargetfunctionReturns the UUID of the avatar seated on the specified link's sit target, or NULL_KEY if no avatar is sitting there.llGetLinkKeyfunctionReturns the key (UUID) of the linked prim or avatar specified by link.llGetLinkMediafunctionReturns a list containing the media parameters of the specified face on the linked prim link, retrieved in the order requested by params.llGetLinkNamefunctionReturns a string containing the name of the linked prim specified by link.llGetLinkNumberOfSidesfunctionReturns an integer representing the number of sides (faces) of the linked prim specified by link.llGetLinkPrimitiveParamsfunctionReturns a list of primitive parameters requested in params for the linked prim specified by link (equivalent to llGetPrimitiveParams).llGetLinkSitFlagsfunctionReturns an integer representing the active sit flags currently set on the linked prim specified by link.llGetObjectLinkKeyfunctionReturns the key (UUID) of the linked child prim specified by link within the linkset identified by object_id.llIsLinkGLTFMaterialfunctionChecks 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.llLinkSitTargetfunctionSets 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>.llSetLinkCamerafunctionSets the camera eye position offset eye and looking-at position offset at for avatars who sit on the linked prim link.llSetLinkMediafunctionSets 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.llSitOnLinkfunctionForces 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.