Operate on one or more link numbers at a time.
integer LINK_ALL_CHILDREN = -3; // Refers to all child prims in the linkset (every prim except the root).integer LINK_ALL_OTHERS = -2; // Refers to every other prim in the linkset, excluding the prim containing the script.integer LINK_ROOT = 1; // Refers to the root prim of the linkset.integer LINK_SET = -1; // Refers to every prim in the linkset.integer LINK_THIS = -4; // Refers specifically to the single prim containing the running script.
Constants
| Constant | Type | Value | Description |
|---|---|---|---|
LINK_ALL_CHILDREN | integer | -3 | Refers to all child prims in the linkset (every prim except the root). |
LINK_ALL_OTHERS | integer | -2 | Refers to every other prim in the linkset, excluding the prim containing the script. |
LINK_ROOT | integer | 1 | Refers to the root prim of the linkset. |
LINK_SET | integer | -1 | Refers to every prim in the linkset. |
LINK_THIS | integer | -4 | Refers specifically to the single prim containing the running script. |
Used by
llBreakLinkfunctionDelinks the prim specified by the link number link. Requires the PERMISSION_CHANGE_LINKS runtime permission.llClearLinkMediafunctionDeletes 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.llLinkAdjustSoundVolumefunctionAdjusts the volume of the currently playing sound attached to the linked prim link (has no effect on sounds started with llTriggerSound).llLinkParticleSystemfunctionCreates or updates a particle system on the linked prim link based on the list of rules. An empty list removes the particle system.llLinkPlaySoundfunctionPlays 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.llLinkSetSoundQueueingfunctionEnables or disables sound queuing on the linked prim link. When set to TRUE, sounds will queue and play in sequence.llLinkSetSoundRadiusfunctionLimits the audibility radius of attached and triggered scripted sounds to distance radius (in meters) around the linked prim link.llLinkStopSoundfunctionStops the playback of any currently playing attached sound on the linked prim link.llMessageLinkedfunctionTriggers 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.llSetLinkAlphafunctionSets the Blinn-Phong alpha (transparency) of face on the linked prim link.llSetLinkColorfunctionSets the Blinn-Phong diffuse RGB color of face on the linked prim link.llSetLinkGLTFOverridesfunctionSets or removes individual GLTF override parameters specified by params on face of the linked prim link.llSetLinkPrimitiveParamsFastfunctionSets primitive parameters for the linked prim link according to rules with no built-in script sleep delay.llSetLinkRenderMaterialfunctionApplies 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.llSetLinkSitFlagsfunctionSets the sit target flags for the linked prim link inside the linkset.llSetLinkTexturefunctionApplies texture (UUID or inventory name) to face of the linked prim link.llSetLinkTextureAnimfunctionAnimates 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.