llGetParcelMaxPrims
function
Function syntax
integer llGetParcelMaxPrims(vector pos,// Position vector in region coordinates (the Z component is ignored).integer sim_wide// Boolean. IfTRUE, returns the combined land impact limit for all parcels owned by the parcel owner in the region; ifFALSE, 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.
integer result = llGetParcelMaxPrims(ZERO_VECTOR, 0);Specification
Section titled “Specification”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.
Caveats
Section titled “Caveats”- If there is an Object Bonus for the region, the value returned may be more than the region’s total limit.
Examples
Section titled “Examples”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."); }}See also
Section titled “See also”Functions
Section titled “Functions”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.