LlSetLinkAlpha
From Second Life Wiki
| LSL Portal | | | Functions | | | Events | | | Types | | | Operators | | | Constants | | | Flow Control | | | Script Library | | | Tutorials |
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: other 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.
|
| |||||||||||||||||||||
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 |

