Difference between revisions of "LlGetParcelPrimCount"

From Second Life Wiki
Jump to navigation Jump to search
 
Line 1: Line 1:
{{LSLFunctionAll|func_id=325|func_sleep=0.0|func_energy=10.0|func=llGetParcelPrimCount|return_type=integer|p1_type=vector|p1_name=pos|p2_type=integer|p2_name=category|p3_type=integer|p3_name=sim_wide|func_footnote=Gets the number of prims on the parcel of the given category.<br />Categories: PARCEL_COUNT_TOTAL, _OWNER, _GROUP, _OTHER, _SELECTED, _TEMP.|return_text|spec|caveats|examples|helpers|related|also|notes}}[[Category:LSL_Functions]][[Category:LSL_Stub]]
{{LSL_Function
|func_id=325|func_sleep=0.0|func_energy=10.0
|func=llGetParcelPrimCount|return_type=integer
|p1_type=vector|p1_name=pos
|p2_type=integer|p2_name=category|p2_desc=A PARCEL_COUNT_* flag.
|p3_type=integer|p3_name=sim_wide|p3_desc=boolean, if {{LSLG|FALSE}} returns the parcel count, otherwise sim wide.
|func_footnote
|func_desc
|return_text=that is the number of prims on the parcel at '''pos''' of the given '''category'''.
|spec
|caveats
|constants={{{!}}{{Prettytable}}
!Category!!Value!!Meaning
{{!}}-
{{!}}{{LSLG|PARCEL_COUNT_TOTAL}}
{{!}}0
{{!}}All prims on the parcel(s). Does not include temp on rez objects.
{{!}}-
{{!}}{{LSLG|PARCEL_COUNT_OWNER}}
{{!}}1
{{!}}Prims owned by the parcel owner.
{{!}}-
{{!}}{{LSLG|PARCEL_COUNT_GROUP}}
{{!}}2
{{!}}Prims not owned by the owner, but set to or owned by the group of the parcel.
{{!}}-
{{!}}{{LSLG|PARCEL_COUNT_OTHER}}
{{!}}3
{{!}}Prims not set to group or owned by the owner.
{{!}}-
{{!}}{{LSLG|PARCEL_COUNT_SELECTED}}
{{!}}4
{{!}}All prims selected or sat on.
{{!}}-
{{!}}{{LSLG|PARCEL_COUNT_TEMP}}
{{!}}5
{{!}}All temp on rez objects.
{{!}}}
|examples
|helpers
|also_functions
|also_events
|also_tests
|also_articles
|notes
|permission
|negative_index
|sort=GetParcelPrimCount
|cat1=Parcel
|cat2
|cat3
|cat4
}}

Revision as of 11:06, 10 February 2007

Summary

Function: integer llGetParcelPrimCount( vector pos, integer category, integer sim_wide );
0.0 Forced Delay
10.0 Energy

Returns an integer that is the number of prims on the parcel at pos of the given category.

• vector pos
• integer category A PARCEL_COUNT_* flag.
• integer sim_wide boolean, if FALSE returns the parcel count, otherwise sim wide.

Category Value Meaning
PARCEL_COUNT_TOTAL 0 All prims on the parcel(s). Does not include temp on rez objects.
PARCEL_COUNT_OWNER 1 Prims owned by the parcel owner.
PARCEL_COUNT_GROUP 2 Prims not owned by the owner, but set to or owned by the group of the parcel.
PARCEL_COUNT_OTHER 3 Prims not set to group or owned by the owner.
PARCEL_COUNT_SELECTED 4 All prims selected or sat on.
PARCEL_COUNT_TEMP 5 All temp on rez objects.

Examples

Deep Notes

Signature

function integer llGetParcelPrimCount( vector pos, integer category, integer sim_wide );