Jump to content

LlGetParcelMaxPrims

From OSgrid Wiki
Revision as of 22:57, 31 December 2017 by Osgridadmin (talk | contribs) (Created page with "== Function: integer llGetParcelMaxPrims( vector pos, integer sim_wide ); == Returns an integer that is the maximum number of prims allowed on the parcel at pos.<br> • vecto...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

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

Returns an integer that is the maximum number of prims allowed on the parcel at pos.
• vector pos – region coordinate (z component is ignored)
• integer sim_wide – Boolean

Specification

If sim_wide is...

• FALSE then the return is the maximum prims supported by the parcel.
• not FALSE then the return is the number of prims supported by all land in the region owned by the parcel owner.

Caveats

Examples

<source lang="lsl">

default {

   touch_start(integer total_number)
   {
       llSay(0, "There are " + (string)llGetParcelPrimCount(llGetPos(), PARCEL_COUNT_TOTAL, FALSE) +" of "
            +(string)llGetParcelMaxPrims(llGetPos(), FALSE) + " prims rezzed on this parcel");
   }

} </source>



See Also
Functions
• llGetParcelPrimCount