Difference between revisions of "LlGetParcelMaxPrims"

From Second Life Wiki
Jump to navigation Jump to search
m
(LI)
Line 10: Line 10:
|func_footnote
|func_footnote
|func_desc
|func_desc
|return_text=that is the maximum number of prims allowed on the parcel at {{LSLP|pos}}.
|return_text=that is the maximum combined [http://community.secondlife.com/t5/English-Knowledge-Base/Calculating-land-impact/ta-p/974163 land impact] allowed for objects on the parcel at {{LSLP|pos}}.
|spec=If {{LSLP|sim_wide}} is...
|spec=If {{LSLP|sim_wide}} is...
*{{#var:FALSE}} then the return is the maximum prims supported by the parcel.
*{{#var:FALSE}} then the return is the maximum land impact supported by the parcel.
*''not'' {{#var:FALSE}} then the return is the number of prims supported by all land in the region owned by the parcel owner.
*''not'' {{#var:FALSE}} then the return is the total land impact supported by all land in the region owned by the parcel owner.
|caveats=
|caveats=
*If there is an Object Bonus for the region the value returned may be over 15000.
*If there is an Object Bonus for the region the value returned may be over 15000.
Line 22: Line 22:
     touch_start(integer total_number)
     touch_start(integer total_number)
     {
     {
         llSay(0, "There are " + (string)llGetParcelPrimCount(llGetPos(), PARCEL_COUNT_TOTAL, FALSE) +" of "
         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) + " prims rezzed on this parcel");
             +(string)llGetParcelMaxPrims(llGetPos(), FALSE) + " allowed.");
     }
     }
}</lsl>
}</lsl>

Revision as of 03:19, 23 December 2013

Summary

Function: integer llGetParcelMaxPrims( vector pos, integer sim_wide );

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

• vector pos position in region coordinates (z component is ignored)
• integer sim_wide TRUE treats all parcels owned by this parcel owner in the sim in a single maximum, FALSE determines the max for the specified parcel

Specification

If sim_wide is...

  • FALSE then the return is the maximum land impact supported by the parcel.
  • not FALSE then the return is the total land impact supported by all land in the region owned by the parcel owner.

Caveats

  • If there is an Object Bonus for the region the value returned may be over 15000.
All Issues ~ Search JIRA for related Bugs

Examples

<lsl>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.");
   }
}</lsl>

See Also

Functions

•  llGetParcelPrimCount

Deep Notes

Search JIRA for related Issues

Signature

function integer llGetParcelMaxPrims( vector pos, integer sim_wide );