Difference between revisions of "LlGetObjectPrimCount"
Jump to navigation
Jump to search
Void Singer (talk | contribs) m (example added) |
|||
Line 9: | Line 9: | ||
|caveats | |caveats | ||
|constants | |constants | ||
|examples | |examples= | ||
<lsl> | |||
default{ | |||
touch_start( integer vIntTouched ){ | |||
llSay( PUBLIC_CHANNEL, "This object has " | |||
+ (string)llGetObjectPrimCount( llGetKey() ) | |||
+ " prims" ); | |||
//-- llGetObjectPrimCount( llGetKey() ) is equavalent to | |||
//-- LlGetNumberOfPrims(), with the option to use it for | |||
//-- any object you have a key for. | |||
} | |||
} | |||
</lsl> | |||
|helpers | |helpers | ||
|also_functions= | |also_functions= |
Revision as of 16:08, 19 February 2008
LSL Portal | Functions | Events | Types | Operators | Constants | Flow Control | Script Library | Categorized Library | Tutorials |
Summary
Function: integer llGetObjectPrimCount( key object_id );323 | Function ID |
0.0 | Forced Delay |
10.0 | Energy |
Returns an integer that is the total number of prims for an object in the sim.
• key | object_id |
Caveats
Examples
<lsl> default{
touch_start( integer vIntTouched ){ llSay( PUBLIC_CHANNEL, "This object has " + (string)llGetObjectPrimCount( llGetKey() ) + " prims" ); //-- llGetObjectPrimCount( llGetKey() ) is equavalent to //-- LlGetNumberOfPrims(), with the option to use it for //-- any object you have a key for. }
}
</lsl>See Also
Functions
• | llGetNumberOfPrims | – | Returns the number of prims in the current object. |