llGetParcelMaxPrims

From Second Life Wiki
Jump to navigation Jump to search

Summary

Function: integer llGetParcelMaxPrims( vector pos, integer <span title="boolean, FALSE for the parcel, otherwise for the sim." style="border-bottom:1px dotted; cursor:help;">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, FALSE for the parcel, otherwise for the sim.

Examples

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

Useful Snippets

<lsl>integer IsThisAVoidSim()//Test if a sim is a void sim {//void sims support only 3750 prims, but we give it some room to grow.

   return llGetParcelMaxPrims( ZERO_VECTOR, TRUE ) <= 7500;

}</lsl>

See Also

Functions

•  llGetParcelPrimCount

Deep Notes

Search JIRA for related Issues

Signature

function integer llGetParcelMaxPrims( vector pos, integer sim_wide );