Difference between revisions of "LlGetNumberOfSides"

From Second Life Wiki
Jump to navigation Jump to search
(llSetText needs color vector and alpha as argument. didn't compile. changed to llOwnerSay)
m
Line 19: Line 19:
}</lsl>
}</lsl>
|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 23:54, 21 May 2012

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>

See Also

Functions

•  llGetLinkNumberOfSides Get number of faces for a linked prim

Deep Notes

Search JIRA for related Issues

Signature

function integer llGetNumberOfSides();