LSL feature request. The described function does not exist. This article is a feature request.

Syntax

float llGetGlow( integer face );

Forced delay: 0.0 seconds. Energy: 10.0.

Parameters

integer face
face number or ALL_SIDES

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]

Return value

Returns a float that is the glow of face.

Caveats

Examples

<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>

Useful snippets

<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>

Notes

Use the user-defined function GetGlow(integer face) until this function is implemented.

See also

Functions