Difference between revisions of "LlGetNumberOfSides"

From Second Life Wiki
Jump to: navigation, search
m
 
(One intermediate revision by one other user not shown)
Line 9: Line 9:
 
|caveats
 
|caveats
 
|constants
 
|constants
|examples=<lsl>default
+
|examples=<source 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 );
 
     }
 
     }
}</lsl>
+
}</source>
 
|helpers
 
|helpers
 
|also_functions=
 
|also_functions=
Line 26: Line 26:
 
|notes
 
|notes
 
|cat1=Face
 
|cat1=Face
|haiku={{Haiku|Janus, being just|Two-faced, could only handle|One lie at a time.}}
 
 
|cat2
 
|cat2
 
|cat3
 
|cat3
 
|cat4
 
|cat4
 
}}
 
}}

Latest revision as of 01:17, 22 January 2015

Summary

Function: integer llGetNumberOfSides( );

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.", <1,1,1>, 1 );
    }
}

See Also

Functions

•  llGetLinkNumberOfSides Get number of faces for a linked prim

Deep Notes

Search JIRA for related Issues

Signature

function integer llGetNumberOfSides();