Syntax

integer llGetRegionAgentCount();

Forced delay: 0.0 seconds. Energy: 10.0.

Return value

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

Caveats

Examples

default
{
    touch_start(integer num_detected)
    {
        integer numberOfAvatarsInSim = llGetRegionAgentCount();
        llSay(0, "There are currently "
            + (string) numberOfAvatarsInSim + " avatars in this sim.");
    }
}

See also

Functions

Deep notes

History