LlGetObjectPrimCount

From Second Life Wiki

Jump to: navigation, search

Contents

Description

Function: integer llGetObjectPrimCount( key object_id );
323 Function ID
0.0 Delay
10.0 Energy

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

• key object_id

Examples

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

See Also

Functions

•  llGetNumberOfPrims Returns the number of prims in the current object.
Personal tools