integer llGetNumberOfSides();
Forced delay: 0.0 seconds. Energy: 10.0.
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.
default
{
state_entry()
{
// Set the hovertext to indicate the number of sides
integer numOfSides = llGetNumberOfSides();
llSetText( "I have " + (string)numOfSides + " sides.", <1,1,1>, 1 );
}
}