llGetNumberOfSides

From Second Life Wiki
Revision as of 14:26, 11 April 2014 by Rolig Loon (talk | contribs)
Jump to navigation Jump to search
The printable version is no longer supported and may have rendering errors. Please update your browser bookmarks and please use the default browser print function instead.

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();
       llSetText( "I have " + (string)numOfSides + " sides.", <1,1,1>, 1 );
   }
}</lsl>

See Also

Functions

•  llGetLinkNumberOfSides Get number of faces for a linked prim

Deep Notes

Search JIRA for related Issues

Signature

function integer llGetNumberOfSides();

Haiku

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