LSL feature request. The described function does not exist. This article is a feature request.
float llGetGlow( integer face );
Forced delay: 0.0 seconds. Energy: 10.0.
If face is ALL_SIDES then the function returns the sum of glow of all the faces on the prim.
The return is in the range [0, 1]
Returns a float that is the glow of face.
<lsl>//Tells the owner the glow on all sides default {
state_entry()
{
integer i = 0;
integer max = llGetNumberOfSides();
while(i < max)
{
llSay(0,"Face "+(string)i+" glow is " + (string)llGetGlow(i));
++i;
}
}
}</lsl>
<lsl>float AveragePrimGlow() {//Since this is so simple you may just want to inline it instead of including the function.
return (llGetGlow(ALL_SIDES) / llGetNumberOfSides());
}</lsl>
Use the user-defined function GetGlow(integer face) until this function is implemented.