<?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=LlGetParcelPrimCount</id>
	<title>LlGetParcelPrimCount - Revision history</title>
	<link rel="self" type="application/atom+xml" href="http://wiki.osgrid.org/index.php?action=history&amp;feed=atom&amp;title=LlGetParcelPrimCount"/>
	<link rel="alternate" type="text/html" href="http://wiki.osgrid.org/index.php?title=LlGetParcelPrimCount&amp;action=history"/>
	<updated>2026-10-25T11:53:46Z</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=LlGetParcelPrimCount&amp;diff=170&amp;oldid=prev</id>
		<title>Osgridadmin: Created page with &quot;== Function: integer llGetParcelPrimCount( vector pos, integer category, integer sim_wide ); == Returns an integer that is the number of prims on the parcel at pos of the give...&quot;</title>
		<link rel="alternate" type="text/html" href="http://wiki.osgrid.org/index.php?title=LlGetParcelPrimCount&amp;diff=170&amp;oldid=prev"/>
		<updated>2017-12-31T22:58:21Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;quot;== Function: integer llGetParcelPrimCount( vector pos, integer category, integer sim_wide ); == Returns an integer that is the number of prims on the parcel at pos of the give...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;== Function: integer llGetParcelPrimCount( vector pos, integer category, integer sim_wide ); ==&lt;br /&gt;
Returns an integer that is the number of prims on the parcel at pos of the given category &amp;lt;br&amp;gt;&lt;br /&gt;
• vector 	pos 	– 	region coordinate (z component is ignored) 	 &amp;lt;br&amp;gt;&lt;br /&gt;
• integer 	category 	– 	a PARCEL_COUNT_* flag 	 &amp;lt;br&amp;gt;&lt;br /&gt;
• integer 	sim_wide 	– 	boolean 	 &amp;lt;br&amp;gt; &amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Specification&amp;#039;&amp;#039;&amp;#039; &amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
If sim_wide is... &amp;lt;br&amp;gt; &amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
• FALSE then the return is the number of prims of the category requested on the parcel specified. &amp;lt;br&amp;gt;&lt;br /&gt;
• not FALSE then the return is the combined number of prims on all parcels in the sim owned by the specified parcel&amp;#039;s owner of the category requested.  &amp;lt;br&amp;gt; &amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot; border=&amp;quot;.5&amp;quot; style=&amp;quot;text-align:center&amp;quot;&lt;br /&gt;
! bgcolor=&amp;quot;black&amp;quot; colspan=&amp;quot;2&amp;quot; | &amp;lt;span style=&amp;quot;color:#CC6633&amp;quot;&amp;gt;Category !! bgcolor=&amp;quot;black&amp;quot; style=&amp;quot;text-align:center| &amp;lt;span style=&amp;quot;color:#CC6633&amp;quot;&amp;gt;Description&lt;br /&gt;
|-&lt;br /&gt;
|style=&amp;quot;text-align:left&amp;quot;| [[PARCEL_COUNT_TOTAL]] || style=&amp;quot;text-align:center&amp;quot;| 0 || style=&amp;quot;text-align:left&amp;quot; | All prims on the parcel(s). Does not include temp on rez objects.&lt;br /&gt;
|-&lt;br /&gt;
|style=&amp;quot;text-align:left&amp;quot;| [[PARCEL_COUNT_OWNER]] || style=&amp;quot;text-align:center&amp;quot;| 1 || style=&amp;quot;text-align:left&amp;quot; | Prims owned by the parcel owner.&lt;br /&gt;
|-&lt;br /&gt;
|style=&amp;quot;text-align:left&amp;quot;| [[PARCEL_COUNT_GROUP ]] || style=&amp;quot;text-align:center&amp;quot;| 2 || style=&amp;quot;text-align:left&amp;quot; | Prims not owned by the owner, but set to or owned by the group of the parcel.&lt;br /&gt;
|-&lt;br /&gt;
|style=&amp;quot;text-align:left&amp;quot;| [[PARCEL_COUNT_OTHER]] || style=&amp;quot;text-align:center&amp;quot;| 3 || style=&amp;quot;text-align:left&amp;quot; | Prims not set to group or owned by the owner. &lt;br /&gt;
|-&lt;br /&gt;
|style=&amp;quot;text-align:left&amp;quot;| [[PARCEL_COUNT_SELECTED]] || style=&amp;quot;text-align:center&amp;quot;| 4 || style=&amp;quot;text-align:left&amp;quot; | All prims selected or sat on.&lt;br /&gt;
|-&lt;br /&gt;
|style=&amp;quot;text-align:left&amp;quot;| [[PARCEL_COUNT_TEMP]] || style=&amp;quot;text-align:center&amp;quot;| 5 || style=&amp;quot;text-align:left&amp;quot; | All temp on rez objects.&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
Caveats &amp;lt;br&amp;gt; &amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Examples&amp;#039;&amp;#039;&amp;#039; &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;
//gives prim usage information when touched.&lt;br /&gt;
default&lt;br /&gt;
{&lt;br /&gt;
    touch_start(integer total_number)&lt;br /&gt;
    {&lt;br /&gt;
        vector pos = llGetPos();&lt;br /&gt;
        llSay(0, &amp;quot;There are &amp;quot; + (string)llGetParcelPrimCount(pos, PARCEL_COUNT_TOTAL, FALSE) +&lt;br /&gt;
                 &amp;quot; total prims on this parcel&amp;quot;);&lt;br /&gt;
        llSay(0, (string)llGetParcelPrimCount(pos, PARCEL_COUNT_OWNER, FALSE) +&lt;br /&gt;
                 &amp;quot; prims are owned by the parcel owner&amp;quot;);&lt;br /&gt;
        llSay(0, (string)llGetParcelPrimCount(pos, PARCEL_COUNT_GROUP, FALSE) +&lt;br /&gt;
                 &amp;quot; prims set to or owned by the parcel&amp;#039;s group.&amp;quot;);&lt;br /&gt;
        llSay(0, (string)llGetParcelPrimCount(pos, PARCEL_COUNT_OTHER, FALSE) +&lt;br /&gt;
                 &amp;quot; prims that are not set to the parcel group or owned by the parcel owner&amp;quot;);&lt;br /&gt;
        llSay(0, (string)llGetParcelPrimCount(pos, PARCEL_COUNT_SELECTED, FALSE) +&lt;br /&gt;
                 &amp;quot; prims are selected&amp;quot;);&lt;br /&gt;
        llSay(0, (string)llGetParcelPrimCount(pos, PARCEL_COUNT_TEMP, FALSE) +&lt;br /&gt;
                 &amp;quot; prims are temp-on-rez&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;
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;
•  	[[llGetParcelMaxPrims]]	 &amp;lt;br&amp;gt;&lt;/div&gt;</summary>
		<author><name>Osgridadmin</name></author>
	</entry>
</feed>