llGetLinkNumberOfSides
function
Function syntax
integer llGetLinkNumberOfSides(integer link// Link number (1 for root, >1 for children) or a LINK_* flag. Values: Link
);- Returns
integer- Energy
- 10
See Face for more information about faces and the conditions that control the number of faces a prim will have.
Returns an integer that is the number of faces (or sides) of the prim link.
integer result = llGetLinkNumberOfSides(0);Examples
Section titled “Examples”Example 1
default{ state_entry() { // Tell the owner the number of sides on the root prim integer numOfSides = llGetLinkNumberOfSides(LINK_ROOT); llOwnerSay( "The root prim has " + (string) numOfSides + " sides." ); }}History
Section titled “History”- Date of release 16-06-2010
See also
Section titled “See also”Functions
Section titled “Functions”Original wiki source
Some wiki templates and tables need their original context. View this article on the Second Life Wiki. Technical wording and examples are retained from the source; historical guidance may differ from current behavior.