Difference between revisions of "LlGetRegionAgentCount"

From Second Life Wiki
Jump to navigation Jump to search
m
(Clarifying behavior per SVC-6964)
Line 14: Line 14:
}</lsl>
}</lsl>
|spec
|spec
|caveats=
* The value returned by this function is technically the average number of agents who were in the region for the past second, rounded to the nearest integer.  This means that there is a slight (<1 second) delay  in agent count when an agent enters or exits a region.
|constants
|constants
|helpers
|helpers

Revision as of 12:20, 9 May 2011

Summary

Function: integer llGetRegionAgentCount( );

Returns an integer that is the number of avatars in the region.

Caveats

  • The value returned by this function is technically the average number of agents who were in the region for the past second, rounded to the nearest integer. This means that there is a slight (<1 second) delay in agent count when an agent enters or exits a region.
All Issues ~ Search JIRA for related Bugs

Examples

<lsl>//Tell the owner how many avatars are in the region on touch default {

   touch_start(integer count)
   {
       llOwnerSay((string)llGetRegionAgentCount());
   }
}</lsl>

See Also

Functions

•  llGetRegionFPS
•  llGetRegionTimeDilation

Deep Notes

History

Search JIRA for related Issues

Signature

function integer llGetRegionAgentCount();