Skip to content
lsl.devlsl.devLSL Dev

llGetLinkNumberOfSides

function
Function syntax
integer llGetLinkNumberOfSides(
  1. 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.

How to use
integer result = llGetLinkNumberOfSides(0);
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." );
}
}
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.