PRIM TYPE
Revision as of 11:10, 8 June 2012 by Strife Onizuka (talk | contribs)
{{LSL Constant |name=PRIM_TYPE |type=integer |value=9 |desc=Gets or sets the type of the prim and associated type parameters. |examples
|pa=
[ PRIM_TYPE, ] + flag_parameters
[ PRIM_TYPE, ] + flag_parametersUsed with llSetPrimitiveParams & llSetLinkPrimitiveParams.
The values needed for flag_parameters is dependent on flag}, please refer to the individual PRIM_TYPE_* articles for additional information.
Caveats
- PRIM_TYPE can only be used with LINK_SET if the object contains 10 or fewer prims. It can only be used with LINK_ALL_OTHERS or LINK_ALL_CHILDREN if the object contains 11 or fewer prims. If there are more prims, the operation will fail and an error will be shouted to DEBUG_CHANNEL. Work around this by looping through the prims with llSetLinkPrimitiveParamsFast.
- While it is possible to use PRIM_TYPE_SCULPT to animate an object, it is not recommended. For details see: Why UUID Flipping is Bad