LlGetLinkNumberOfSides

From Second Life Wiki
Jump to navigation Jump to search

{{LSL_Function |func_id=?|func_sleep=0.0|func_energy=10.0 |func=llGetLinkNumberOfSides |return_type=integer |p1_type=integer|p1_name=link |func_desc |return_text=that is the number of faces (or sides) of the prim link. |func_footnote=See Face for more information about faces and the conditions that control the number of faces a prim will have. |spec |caveats |constants |examples=<lsl>default {

   state_entry()
   {
       // Set the hovertext to indicate the number of sides
       integer numOfSides = llGetLinkNumberOfSides(LINK_ROOT);
       llOwnerSay( "The root prim has " + (string)numOfSides + " sides." );
   }

}</lsl> |helpers |also_functions= |-style="vertical-align:top;" | style="color:gray;" |•  | llSetLinkColor | style="color:gray;" | | | |-style="vertical-align:top;" | style="color:gray;" |•  | llSetLinkTexture | style="color:gray;" | | | |also_tests |also_events |also_articles |notes |cat1=Face |cat2 |cat3 |cat4 }}