Difference between revisions of "LlGetParcelMaxPrims"

From Second Life Wiki
Jump to navigation Jump to search
Line 9: Line 9:
|caveats
|caveats
|constants
|constants
|examples
|examples=
<lsl>
// 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)
    {
        llSay(0, "There are " + (string)llGetParcelPrimCount(llGetPos(), PARCEL_COUNT_TOTAL, FALSE) +" of "
            +(string)llGetParcelMaxPrims(llGetPos(), FALSE) + " prims rezzed on this parcel");
    }
}
 
</lsl>
|helpers
|helpers
|also_functions
|also_functions=
{{LSL DefineRow||[[llGetParcelPrimCount]]}}
|also_events
|also_events
|also_tests
|also_tests

Revision as of 08:58, 17 February 2008

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
• integer sim_wide boolean, FALSE for the parcel, otherwise for the sim.

Examples

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