LlGetNumberOfPrims
Appearance
Function: integer llGetNumberOfSides( );
Returns an integer that is the number of faces (or sides) of the prim.
See Face for more information about faces and the conditions that control the number of faces a prim will have.
Examples
| <source lang="lsl">
default { state_entry()
{
// Set the hovertext to indicate the number of sides
integer numOfSides = llGetNumberOfSides();
llSetText( "I have " + (string)numOfSides + " sides." );
}
} </source> |