Difference between revisions of "LlGetParcelPopulation"

From Second Life Wiki
Jump to navigation Jump to search
m (added reference to llGetAgentList(AGENT_LIST_REGION, []))
 
(3 intermediate revisions by one other user not shown)
Line 1: Line 1:
{{LSL_Function|func_id|func_sleep=0.1|func_energy=10.0|func=llGetParcelPopulation|sort=GetParcelPopulation|p1_type=vector|p1_name=position|func_desc=Returns the number of avatars currently online in the parcel containing position|return_text|spec|caveats|examples|helpers|related|also|notes=Useful in devices compiling other visitor statistics than that of "traffic" without having to use laggy (and inaccurate on large parcels) scans.|mode=request}}
{{LSL_Function|func_id|func_sleep=0.1|func_energy=10.0
|func=llGetParcelPopulation|sort=GetParcelPopulation
|p1_type=vector|p1_name=position
|return_text=that is the avatars currently online in the parcel at '''position''' in [[Viewer_coordinate_frames#Region|region coordinates]].
|return_type=integer
|func_desc
|spec
|caveats
|examples
|helpers
|related
|also
|notes=
Useful in devices compiling other visitor statistics than that of "traffic" without having to use laggy (and inaccurate on large parcels) scans.
 
{{LSL Tip|You can use [[llGetAgentList]]([[AGENT_LIST_PARCEL]], []); instead of the desired function described on this page.}}
|mode=request}}

Latest revision as of 10:37, 2 November 2012

Emblem-important-yellow.png LSL Feature Request
The described function does not exist. This article is a feature request.

Summary

Function: integer llGetParcelPopulation( vector position );
0.1 Forced Delay
10.0 Energy

Returns an integer that is the avatars currently online in the parcel at position in region coordinates.

• vector position

Caveats

  • This function causes the script to sleep for 0.1 seconds.

Examples

Notes

Useful in devices compiling other visitor statistics than that of "traffic" without having to use laggy (and inaccurate on large parcels) scans.

KBcaution.png Important: You can use llGetAgentList(AGENT_LIST_PARCEL, []); instead of the desired function described on this page.

Deep Notes

Signature

//function integer llGetParcelPopulation( vector position );