Difference between revisions of "LlGetLinkNumberOfSides"

From Second Life Wiki
Jump to navigation Jump to search
m
Line 1: Line 1:
{{LSL_Function
{{LSL_Function
|inject-1={{LSL_Generic/pre-release|server-release=1.40}}
{{LSL Function/link|link}}
{{LSL Function/link|link}}
|func_id=?|func_sleep=0.0|func_energy=10.0
|func_id=?|func_sleep=0.0|func_energy=10.0

Revision as of 20:23, 1 July 2010

{{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 }}