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)
m
Line 1: Line 1:
{{#vardefine:FALSE|{{LSL Const|FALSE|integer|0|c=Treated as false by conditionals.}}}}
{{#vardefine:FALSE|{{LSL Const|FALSE|integer|0|c=Treated as false by conditionals.}}}}
{{LSL_Function
{{LSL_Function
|inject-2={{LSL_Function/boolean|sim_wide}}
|func_id=326|func_sleep=0.0|func_energy=10.0
|func_id=326|func_sleep=0.0|func_energy=10.0
|func=llGetParcelMaxPrims
|func=llGetParcelMaxPrims
|return_type=integer
|return_type=integer
|p1_type=vector|p1_name=pos|p1_desc=[[Viewer coordinate frames#Region|region coordinate]] (z component is ignored)
|p1_type=vector|p1_name=pos|p1_desc=[[Viewer coordinate frames#Region|region coordinate]] (z component is ignored)
|p2_type=integer|p2_name=sim_wide|p2_desc=Boolean
|p2_type=integer|p2_name=sim_wide|p2_desc=, counting of all prims in all parcels owned by this parcel owner in the sim.
|func_footnote
|func_footnote
|func_desc
|func_desc

Revision as of 19:10, 16 February 2012

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 TRUE enables, FALSE disables, counting of all prims in all parcels owned by this parcel owner in the sim.

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 );