Difference between revisions of "LlGetNumberOfSides"
Jump to navigation
Jump to search
Wyvern Dryke (talk | contribs) m |
Omei Qunhua (talk | contribs) (Example action did not match its description) |
||
Line 15: | Line 15: | ||
// Set the hovertext to indicate the number of sides | // Set the hovertext to indicate the number of sides | ||
integer numOfSides = llGetNumberOfSides(); | integer numOfSides = llGetNumberOfSides(); | ||
llSetText( "I have " + (string)numOfSides + " sides.", <1,1,1>, 1 ); | |||
} | } | ||
}</lsl> | }</lsl> |
Revision as of 07:28, 6 January 2013
LSL Portal | Functions | Events | Types | Operators | Constants | Flow Control | Script Library | Categorized Library | Tutorials |
Summary
Function: integer llGetNumberOfSides( );168 | Function ID |
0.0 | Forced 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.
Caveats
Examples
<lsl>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 ); }}</lsl>
See Also
Functions
• | llGetLinkNumberOfSides | – | Get number of faces for a linked prim |