Difference between revisions of "LlGetParcelMaxPrims"

From Second Life Wiki
Jump to navigation Jump to search
m (ambiguous value can be returned when an Object Bonus has been set for the region)
Line 13: Line 13:
*''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 number of prims 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.
|constants
|constants
|examples=
|examples=

Revision as of 16:59, 14 April 2009

Summary

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.

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>

See Also

Functions

•  llGetParcelPrimCount

Deep Notes

Search JIRA for related Issues

Signature

function integer llGetParcelMaxPrims( vector pos, integer sim_wide );