llGetNumberOfSides

From Second Life Wiki
Revision as of 16:52, 9 January 2010 by Zai Lynch (talk | contribs) (llSetText needs color vector and alpha as argument. didn't compile. changed to llOwnerSay)
Jump to navigation Jump to search

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

<lsl>default {

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

Deep Notes

Search JIRA for related Issues

Signature

function integer llGetNumberOfSides();