LlSetLinkAlpha

From Second Life Wiki

Jump to: navigation, search

Contents

Summary

Function: llSetLinkAlpha( integer linknumber, float alpha, integer face );
274 Function ID
0.0 Delay
10.0 Energy

If a prim exists in the link chain at linknumber, set face to alpha

• integer linknumber Link number (0: unlinked, 1: root prim, >1: child prims) or a LINK_* flag
• float alpha from 0.0 (clear) to 1.0 (solid) (0.0 <= alpha <= 1.0)
• integer face face number or ALL_SIDES

If face is ALL_SIDES then the function works on all sides.

Flag Description
LINK_ROOT 1 sends to root prim in a linked set
LINK_SET -1 sends to all prims
LINK_ALL_OTHERS -2 sends to all other prims
Flag Description
LINK_ALL_CHILDREN -3 sends to all children, (everything but the root)
LINK_THIS -4 sends to the prim the script is in

Caveats

  • The function silently fails if its face value indicates a face that does not exist.

Search JIRA for related Bugs

Examples

Make the entire object disappear for 5 seconds

 
default
{
    touch_start(integer detected)
    {
        llSetLinkAlpha(LINK_SET, 0.0, ALL_SIDES);
        llSetTimerEvent(5.0);
    }
    timer()
    {
        llSetLinkAlpha(LINK_SET, 1.0, ALL_SIDES);
        llSetTimerEvent(0.0);
    }
}
 

See Also

Events

•  changed CHANGED_COLOR

Functions

•  llGetLinkNumber Returns the link number of the prim the script is in.
•  llGetAlpha Gets the prim's alpha
•  llSetAlpha Sets the prim's alpha
•  llGetColor Gets the prim's color
•  llSetColor Sets the prim's color
•  llSetLinkColor
•  llSetLinkTexture
•  llSetLinkPrimitiveParams

Articles

•  Translucent Color

Deep Notes

This article wasn't helpful for you? Maybe the related article at the LSL Wiki is able to bring enlightenment.
Personal tools
In other languages