Difference between revisions of "LlGetNumberOfSides"
Jump to navigation
Jump to search
Line 3: | Line 3: | ||
|func=llGetNumberOfSides | |func=llGetNumberOfSides | ||
|return_type=integer | |return_type=integer | ||
|func_footnote | |func_footnote=See {{LSLGC|Face}} for more information about faces and the conditions that control the number of faces a prim will have. | ||
|func_desc | |func_desc | ||
|return_text=that is the number of | |return_text=that is the number of faces (or sides) of the prim. | ||
|spec | |spec | ||
|caveats | |caveats | ||
Line 18: | Line 18: | ||
} | } | ||
}</lsl> | }</lsl> | ||
|helpers | |helpers | ||
|also_functions | |also_functions |
Revision as of 04:23, 2 August 2008
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." ); }}</lsl>