Difference between revisions of "LlGetParcelMaxPrims"

From Second Life Wiki
Jump to navigation Jump to search
Line 1: Line 1:
{{LSL_Function
{{LSL_Function
|func_id=326|func_sleep=0.0|func_energy=10.0
|func_id=326|func_sleep=0.0|func_energy=10.0
|func=llGetParcelMaxPrims|return_type=integer|p1_type=vector|p1_name=pos|p1_desc=[[Viewer coordinate frames#Region|region coordinate]]
|func=llGetParcelMaxPrims
|p2_type=integer|p2_name=sim_wide|p2_desc=boolean, {{LSLG|FALSE}} for the parcel, otherwise for the [[sim]].
|return_type=integer
|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, {{LSL Const|FALSE|integer|0|c=treated as false by conditionals}} for the parcel, otherwise for the [[sim]].
|func_footnote
|func_footnote
|func_desc
|func_desc
Line 10: Line 12:
|constants
|constants
|examples=
|examples=
<lsl>
<lsl>default
// Code initially created by Anthony Reisman (aka Anthony Bundy).
// It is free to use or distribute for any purpose
default
{
{
    state_entry()
    {
    }
     touch_start(integer total_number)
     touch_start(integer total_number)
     {
     {
Line 24: Line 19:
             +(string)llGetParcelMaxPrims(llGetPos(), FALSE) + " prims rezzed on this parcel");
             +(string)llGetParcelMaxPrims(llGetPos(), FALSE) + " prims rezzed on this parcel");
     }
     }
}
}</lsl>
 
</lsl>
|helpers
|helpers
|also_functions=
|also_functions=
Line 34: Line 27:
|also_articles
|also_articles
|notes
|notes
|permission
|negative_index
|sort=GetParcelMaxPrims
|cat1=Parcel
|cat1=Parcel
|cat2
|cat2

Revision as of 04:26, 30 May 2008

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>

See Also

Functions

•  llGetParcelPrimCount

Deep Notes

Search JIRA for related Issues

Signature

function integer llGetParcelMaxPrims( vector pos, integer sim_wide );