Difference between revisions of "LlGetNumberOfSides"

From Second Life Wiki
Jump to: navigation, search
(Example action did not match its description)
Line 26: Line 26:
|haiku={{Haiku|Janus, being just|Two-faced, could only handle|One lie at a time.}}

Revision as of 13:26, 11 April 2014


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.


<lsl>default {

       // Set the hovertext to indicate the number of sides
       integer numOfSides = llGetNumberOfSides();
       llSetText( "I have " + (string)numOfSides + " sides.", <1,1,1>, 1 );

See Also


•  llGetLinkNumberOfSides Get number of faces for a linked prim

Deep Notes

Search JIRA for related Issues


function integer llGetNumberOfSides();


Janus, being just
Two-faced, could only handle
One lie at a time.