<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>http://wiki.osgrid.org/index.php?action=history&amp;feed=atom&amp;title=LlGetObjectPrimCount</id>
	<title>LlGetObjectPrimCount - Revision history</title>
	<link rel="self" type="application/atom+xml" href="http://wiki.osgrid.org/index.php?action=history&amp;feed=atom&amp;title=LlGetObjectPrimCount"/>
	<link rel="alternate" type="text/html" href="http://wiki.osgrid.org/index.php?title=LlGetObjectPrimCount&amp;action=history"/>
	<updated>2026-10-25T11:08:29Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.43.11</generator>
	<entry>
		<id>http://wiki.osgrid.org/index.php?title=LlGetObjectPrimCount&amp;diff=163&amp;oldid=prev</id>
		<title>Osgridadmin: Created page with &quot;==Function: integer llGetObjectPrimCount( key prim );== Returns an integer that is the total number of prims for an object in the sim that contains prim. &lt;br&gt;&lt;br&gt; • key 	pri...&quot;</title>
		<link rel="alternate" type="text/html" href="http://wiki.osgrid.org/index.php?title=LlGetObjectPrimCount&amp;diff=163&amp;oldid=prev"/>
		<updated>2017-12-31T22:52:53Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;quot;==Function: integer llGetObjectPrimCount( key prim );== Returns an integer that is the total number of prims for an object in the sim that contains prim. &amp;lt;br&amp;gt;&amp;lt;br&amp;gt; • key 	pri...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;==Function: integer llGetObjectPrimCount( key prim );==&lt;br /&gt;
Returns an integer that is the total number of prims for an object in the sim that contains prim. &amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
• key 	prim 	– 	Must be the UUID of a prim in the sim otherwise the return is zero. 	&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
Avatars are not counted. &amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Caveats&amp;#039;&amp;#039;&amp;#039; &amp;lt;br&amp;gt;&lt;br /&gt;
• This cannot be used to detect if an avatar is seated, use llGetAgentInfo instead. &amp;lt;br&amp;gt;&lt;br /&gt;
Examples &amp;lt;br&amp;gt;&lt;br /&gt;
{|border=&amp;quot;1&amp;quot; cellpadding=&amp;quot;5&amp;quot; cellspacing=&amp;quot;0&amp;quot;&lt;br /&gt;
|&amp;lt;source lang=&amp;quot;lsl&amp;quot;&amp;gt;&lt;br /&gt;
default{&lt;br /&gt;
  touch_start( integer vIntTouched ){&lt;br /&gt;
    integer prims = llGetObjectPrimCount( llGetKey() );&lt;br /&gt;
    llSay( PUBLIC_CHANNEL, &amp;quot;This object has &amp;quot;&lt;br /&gt;
                           + (string)prims&lt;br /&gt;
                           + &amp;quot; prims and &amp;quot;&lt;br /&gt;
                           + (string)(llGetNumberOfPrims() - prims)&lt;br /&gt;
                           + &amp;quot; avatars.&amp;quot;);&lt;br /&gt;
  }&lt;br /&gt;
}&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
|}&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Notes&amp;#039;&amp;#039;&amp;#039; &amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
[[llGetObjectPrimCount]] can be used as an alternative for [[llGetAgentSize]] for testing if a uuid that is known to be in the sim is an avatar. The big difference being the two is that [[llGetObjectPrimCount]] returns zero on avatars while [[llGetAgentSize]] returns [[ZERO_VECTOR]] on prims. These two could be used in conjunction to test if the [[UUID]] is in the sim but [[llGetBoundingBox]] maybe a better choice. &amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
See Also &amp;lt;br&amp;gt;&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Functions&amp;#039;&amp;#039;&amp;#039; &amp;lt;br&amp;gt;&lt;br /&gt;
•  	[[llGetNumberOfPrims]] 	– 	Returns the number of prims in the current object. 	&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;/div&gt;</summary>
		<author><name>Osgridadmin</name></author>
	</entry>
</feed>