LlGetAlpha
From Second Life Wiki
| LSL Portal | Functions | Events | Types | Operators | Constants | Flow Control | Script Library | Tutorials |
Contents |
Examples
//Tells the owner the alpha on all sides default { state_entry() { integer i = 0; integer max = llGetNumberOfSides(); while(i < max) { llSay(0,"Face "+(string)i+" alpha is " + (string)llGetAlpha(i)); ++i; } } }
Useful Snippets
float AveragePrimAlpha() {//Since this is so simple you may just want to inline it instead of including the function. return (llGetAlpha(ALL_SIDES) / llGetNumberOfSides()); }
See Also
Functions
| • | llSetAlpha | – | Sets the prim's alpha | |
| • | llGetColor | – | Gets the prim's color | |
| • | llSetColor | – | Sets the prim's color | |
| • | llSetLinkColor | – | Sets link's color | |
| • | llSetLinkAlpha | – | Sets link's alpha | |
| • | llGetNumberOfSides | – | Gets the number of faces on the prim |
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.

