Difference between revisions of "LlGetNumberOfSides"

From Second Life Wiki
Jump to navigation Jump to search
m
(8 intermediate revisions by 7 users not shown)
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 sides (or faces) of the prim.
|return_text=that is the number of faces (or sides) of the prim.
|spec
|spec
|caveats
|caveats
|constants
|constants
|examples
|examples=<source lang="lsl2">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 );
    }
}</source>
|helpers
|helpers
|also_functions
|also_functions=
{{LSL DefineRow||[[llGetLinkNumberOfSides]]|Get number of faces for a linked prim}}
|also_tests
|also_tests
|also_events
|also_events

Revision as of 02: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();