$nav ===== Function: llSetLinkAlpha ===== llSetLinkAlpha(integer link, float alpha, integer face) ===== Parameters ===== === link === $linkparam === alpha === A $lty[float] value between 0.0 and 1.0 indicating the degree of opacity, with 1.0 being fully opaque. === face === $faceparam ===== Notes ===== * Note that the viewer shows transparency, not opacity, and it shows it in percentage. To convert from viewer transparency to an alpha value suitable for use with this function, use this formula: alpha=(100-transparency)/100. For example, a transparency of 35% is an alpha value of 0.65. * The function silently fails if **face** indicates a face that does not exist, or if **link** indicates a non-existent prim. ===== 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 ===== // 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 ===== * $lfn[llSetAlpha] to affect only the current prim. * $lfn[llSetColor] to set the color of a face in the current prim, or $lfn[llSetLinkColor] to set it for any chosen prim. * The $lfn[PrimitiveParams/|PrimitiveParams] family of functions, with $lct[PRIM_COLOR], allows changing color and alpha at the same time. * $lfn[llSetTexture] and $lfn[llSetLinkTexture] can also be used to change the texture to $lct[TEXTURE_TRANSPARENT].