Skip to content
lsl.devlsl.devLSL Dev

llSetLinkRenderMaterial

function
Function syntax
llSetLinkRenderMaterial(
  1. integer link,// Link number (1 for root, >1 for children) or a LINK_* flag. Values: Links
  2. string material,// Name of a material in the prim's inventory, or a UUID.
  3. integer face// Face number or ALL_SIDES. Values: Faces
);
Delay
0.2 s
Energy
10

If a prim exists in the link set at link, set material on face of that prim. This function will clear most PRIM_GLTF_* properties on the face, with the exceptions of repeats, offsets, and rotation_in_radians

How to use
llSetLinkRenderMaterial(0, "", 0);
Cover a link set in the material my_material
default
{
touch_start(integer detected)
{
llSetLinkRenderMaterial(LINK_SET, my_material, ALL_SIDES);
}
}
Original wiki source

Some wiki templates and tables need their original context. View this article on the Second Life Wiki. Technical wording and examples are retained from the source; historical guidance may differ from current behavior.