LlGetNumberOfSides
From Second Life Wiki
| LSL Portal | Functions | Events | Types | Operators | Constants | Flow Control | Script Library | Tutorials |
Contents |
Summary
Function: integer llGetNumberOfSides( );| 168 | Function ID |
| 0.0 | Delay |
| 10.0 | Energy |
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
default { state_entry() { // Set the hovertext to indicate the number of sides integer numOfSides = llGetNumberOfSides(); llSetText( "I have " + (string)numOfSides + " sides." ); } }
This article wasn't helpful for you? Maybe the related article at the LSL Wiki is able to bring enlightenment.

