Skip to content
lsl.devlsl.devLSL Dev

llGetParcelMaxPrims

function
Function syntax
integer llGetParcelMaxPrims(
  1. vector pos,// Position vector in region coordinates (the Z component is ignored).
  2. integer sim_wide// Boolean. If TRUE, returns the combined land impact limit for all parcels owned by the parcel owner in the region; if FALSE, returns only the limit for the specified parcel.
);
Returns
integer
Energy
10

Returns an integer representing the maximum combined land impact (prim limit) allowed for objects on the parcel at pos, determined either for the single parcel or sim-wide based on sim_wide.

Returns an integer that is the maximum combined land impact allowed for objects on the parcel at pos.

How to use
integer result = llGetParcelMaxPrims(ZERO_VECTOR, 0);

If sim_wide is…

  • then the return is the maximum land impact supported by the parcel.
  • not then the return is the total land impact supported by all land in the region owned by the parcel owner.
  • If there is an Object Bonus for the region, the value returned may be more than the region’s total limit.
Example 1
default
{
touch_start(integer total_number)
{
llSay(0, "The total land impact of objects rezzed on this parcel is "
+(string)llGetParcelPrimCount(llGetPos(), PARCEL_COUNT_TOTAL, FALSE) +", of "
+(string)llGetParcelMaxPrims(llGetPos(), FALSE) + " allowed.");
}
}
Original wiki source

Some wiki templates and tables need their original context. View this article on the Second Life Wiki. Technical wording and examples are retained from the source; historical guidance may differ from current behavior.