Difference between revisions of "LlGetObjectPrimCount"

From Second Life Wiki
Jump to navigation Jump to search
m (example added)
m (add cat Object)
Line 29: Line 29:
|also_articles
|also_articles
|notes
|notes
|cat1
|cat1=Object
|cat2
|cat2
|cat3
|cat3
|cat4
|cat4
}}
}}

Revision as of 18:36, 21 March 2008

Summary

Function: integer llGetObjectPrimCount( key object_id );

Returns an integer that is the total number of prims for an object in the sim.

• key object_id

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.

Deep Notes

Search JIRA for related Issues

Signature

function integer llGetObjectPrimCount( key object_id );