OsGetLinkPrimitiveParams

From OpenSimulator

(Difference between revisions)
Jump to: navigation, search
Line 1: Line 1:
{{Quicklinks}}
+
{{osslfunc|
{| width="100%" style="border: thin solid black"
+
threat_level = High
| colspan="2" align="center" style=background:orange | '''{{SUBPAGENAME}}'''
+
|
|- valign="top"
+
function_syntax = <source lang="lsl">
|'''Threat Level''' || High
+
 
+
|- valign="top"
+
|'''Function Syntax''' || <source lang="lsl">
+
 
LSL: list osGetLinkPrimitiveParams( integer linknumber, list params )
 
LSL: list osGetLinkPrimitiveParams( integer linknumber, list params )
 
C#: LSL_List osGetRegionStats( int linknumber, LSL_List params )
 
C#: LSL_List osGetRegionStats( int linknumber, LSL_List params )
 
</source>
 
</source>
|- valign="top"
+
|
|'''Example(s)||<source lang="lsl">
+
ossl_example = <source lang="lsl">
 
// llGetLinkPrimitiveParams() example script
 
// llGetLinkPrimitiveParams() example script
 
//
 
//
Line 32: Line 28:
 
     }
 
     }
 
}</source>
 
}</source>
 
+
|  
|}
+
additional_info = Returns the primitive parameters for the linkset prim or prims specified by '''linknumber'''. It is possible to use the linkset constants (e.g. '''LINK_SET''', '''LINK_ALL_CHILDREN''') in place of a specific link number, in which case the requested parameters of each relevant prim are concatenated to the end of the list. Otherwise, the usage is identical to llGetPrimitiveParams().
Returns the primitive parameters for the linkset prim or prims specified by '''linknumber'''. It is possible to use the linkset constants (e.g. '''LINK_SET''', '''LINK_ALL_CHILDREN''') in place of a specific link number, in which case the requested parameters of each relevant prim are concatenated to the end of the list. Otherwise, the usage is identical to llGetPrimitiveParams().
+
|
 
+
}}
 
+
[[Category:OSSL Functions]]
+

Revision as of 15:03, 12 June 2011

LSL: list osGetLinkPrimitiveParams( integer linknumber, list params )
C#: LSL_List osGetRegionStats( int linknumber, LSL_List params )
No descriptions provided
Threat Level High
Permissions No permissions specified
Extra Delay No function delay specified
Example(s)
// llGetLinkPrimitiveParams() example script
//
// Trivial example which averages the sizes of all the prims in the linkset and returns the resuilt.
//
default
{
    state_entry()
    {
        vector average = ZERO_VECTOR;
        list params = osGetLinkPrimitiveParams( LINK_SET, [ PRIM_SIZE ] );
        integer len = llGetListLength( params );
        integer i;
 
        for (i = 0; i < len; i++)
            average += llList2Vector( params, i );
 
        average /= (float) len;
        llOwnerSay( "The average size of the prims in this linkset is " + (string) average );
    }
}
Notes
Returns the primitive parameters for the linkset prim or prims specified by linknumber. It is possible to use the linkset constants (e.g. LINK_SET, LINK_ALL_CHILDREN) in place of a specific link number, in which case the requested parameters of each relevant prim are concatenated to the end of the list. Otherwise, the usage is identical to llGetPrimitiveParams().
Personal tools
General
About This Wiki