Jump to content

LlGetNumberOfPrims

From OSgrid Wiki
Revision as of 22:42, 31 December 2017 by Osgridadmin (talk | contribs) (Created page with "==Function: integer llGetNumberOfSides( );== Returns an integer that is the number of faces (or sides) of the prim. <br><br> See Face for more information about faces and the...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

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

<source lang="lsl">

default {

   state_entry()
   {
       // Set the hovertext to indicate the number of sides
       integer numOfSides = llGetNumberOfSides();
       llSetText( "I have " + (string)numOfSides + " sides." );
   }

} </source>