ll.GetParcelPrimCount

ll.GetParcelPrimCount(Position: vector, Category: number, SimWide: number) : number

Returns the number of prims on the parcel at Position of the given category. Categories: PARCEL_COUNT_TOTAL, _OWNER, _GROUP, _OTHER, _SELECTED, _TEMP. Returns the number of prims used on the parcel at Position which are in Category. If SimWide is TRUE, it returns the total number of objects for all parcels with matching ownership in the category specified. If SimWide is FALSE, it returns the number of objects on this specific parcel in the category specified

Example

ll.GetParcelPrimCount(vector(1,1,1), 1, 0)
{
  "def": "func",
  "desc": "Returns the number of prims on the parcel at Position of the given category.\nCategories: PARCEL_COUNT_TOTAL, _OWNER, _GROUP, _OTHER, _SELECTED, _TEMP.\nReturns the number of prims used on the parcel at Position which are in Category.\nIf SimWide is TRUE, it returns the total number of objects for all parcels with matching ownership in the category specified.\nIf SimWide is FALSE, it returns the number of objects on this specific parcel in the category specified",
  "energy": 10,
  "sleep": 0,
  "pure": true,
  "link": "https://wiki.secondlife.com/wiki/LlGetParcelPrimCount",
  "name": "GetParcelPrimCount",
  "signatures": [
    {
      "result": [
        {
          "name": "",
          "def": "result",
          "desc": "",
          "variadic": false,
          "type": [
            "number"
          ],
          "optional": false
        }
      ],
      "args": [
        {
          "def": "arg",
          "name": "Position",
          "desc": "Region coordinates of parcel to query.",
          "type": [
            "vector"
          ],
          "variadic": false,
          "optional": false
        },
        {
          "def": "arg",
          "name": "Category",
          "desc": "A PARCEL_COUNT_* flag.",
          "type": [
            "integer",
            "number"
          ],
          "variadic": false,
          "optional": false
        },
        {
          "def": "arg",
          "name": "SimWide",
          "desc": "Boolean. If FALSE then the return is the maximum prims supported by the parcel. If TRUE then it is the combined number of prims on all parcels in the region owned by the specified parcel's owner.",
          "type": [
            "integer",
            "number"
          ],
          "variadic": false,
          "optional": false
        }
      ]
    }
  ]
}

< Back to ll