OsGetPrimCount

From OpenSimulator

(Difference between revisions)
Jump to: navigation, search
Line 20: Line 20:
 
|description=
 
|description=
 
returns the number of prims of the current linkset or of the linkset that includes a prim with UUID objectID.
 
returns the number of prims of the current linkset or of the linkset that includes a prim with UUID objectID.
 +
 +
Unlike ll* versions, does not count sitting avatars and does work on attachments.
  
  
 
|additional_info=This function was added in 0.9.3.0
 
|additional_info=This function was added in 0.9.3.0
 
}}
 
}}

Revision as of 14:05, 14 June 2023

integer osGetPrimCount()

integer osGetPrimCount(key objectID)

returns the number of prims of the current linkset or of the linkset that includes a prim with UUID objectID.

Unlike ll* versions, does not count sitting avatars and does work on attachments.

Threat Level ignore is unknown threat level
Permissions Use of this function is always allowed by default
Extra Delay 0 seconds
Example(s)
default
{
    state_entry()
    {
       llSay(0, "Script running");
    }
    touch_start(integer num)
    {
        llOwnerSay(" this linkset has " + (string) osGetPrimCount() + " prims");
    }
}
Notes
This function was added in 0.9.3.0


Personal tools
General
About This Wiki