Table of Contents

Start Functions Events Constants Types Language Articles

Function: llSetLinkAlpha

llSetLinkAlpha(integer link, float alpha, integer face)

Parameters

An integer value defining the link number of the prim to be read.

The following special link specification constants can be used:-

ConstantValueDescription
LINK_THIS -4 refers to the prim the script is in
LINK_ROOT 1 refers to the root prim in a multi-prim linked set
LINK_SET -1 refers to all prims
LINK_ALL_OTHERS -2 refers to all prims other than the one the script is in
LINK_ALL_CHILDREN -3 refers to all children (everything but the root)

alpha

A float value between 0.0 and 1.0 indicating the degree of opacity, with 1.0 being fully opaque.

face

An integer value defining the face of the prim to be affected. ALL_SIDES affects all faces.

Notes

Short examples

llSetLinkAlpha(3, 0.5, 6); // Will set face 6 of link 3 to 50% transparent
llSetLinkAlpha(2, 0.0, ALL_SIDES);  // Will make link 3 or this object disappear

Complete examples

llSetLinkAlpha-example.lsl
// This will cause all other prims of the current object to blink on and
// off continuously (appear and disappear)
integer  flip;
default
{
    state_entry()
    {
        llSetTimerEvent(0.5);
    }
    timer()
    {
        flip = !flip;
        llSetLinkAlpha(LINK_ALL_OTHERS, flip, ALL_SIDES);
    }
}

See also