LlGetParcelMaxPrims

From Second Life Wiki

Jump to: navigation, search

Contents

Description

Function: integer llGetParcelMaxPrims( vector pos, integer sim_wide );
326 Function ID
0.0 Delay
10.0 Energy

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

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

See Also

Functions

•  llGetParcelPrimCount
This article wasn't helpful for you? Maybe the related article at the LSL Wiki is able to bring enlightenment.
Personal tools