Difference between revisions of "LlGetNumberOfSides"
Jump to navigation
Jump to search
m |
m (Replaced <source> with <syntaxhighlight>) |
||
Line 9: | Line 9: | ||
|caveats | |caveats | ||
|constants | |constants | ||
|examples=< | |examples=<syntaxhighlight lang="lsl2">default | ||
{ | { | ||
state_entry() | state_entry() | ||
Line 17: | Line 17: | ||
llSetText( "I have " + (string)numOfSides + " sides.", <1,1,1>, 1 ); | llSetText( "I have " + (string)numOfSides + " sides.", <1,1,1>, 1 ); | ||
} | } | ||
}</ | }</syntaxhighlight> | ||
|helpers | |helpers | ||
|also_functions= | |also_functions= |
Latest revision as of 00:13, 11 October 2023
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
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 );
}
}
See Also
Functions
• | llGetLinkNumberOfSides | – | Get number of faces for a linked prim |