Difference between revisions of "LlGetNumberOfSides"
Jump to navigation
Jump to search
Line 9: | Line 9: | ||
|caveats | |caveats | ||
|constants | |constants | ||
|examples | |examples=<lsl>default | ||
{ | |||
state_entry() | |||
{ | |||
// Set the hovertext to indicate the number of sides | |||
integer numOfSides = llGetNumOfSides(); | |||
llSetText( "I have " + (string)numOfSides + " sides." ); | |||
} | |||
}</lsl> | |||
|helpers | |helpers | ||
|also_functions | |also_functions |
Revision as of 20:35, 26 July 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 sides (or faces) of the prim.
Caveats
Examples
<lsl>default {
state_entry() { // Set the hovertext to indicate the number of sides integer numOfSides = llGetNumOfSides(); llSetText( "I have " + (string)numOfSides + " sides." ); }}</lsl>