integer llGetRegionAgentCount();
Forced delay: 0.0 seconds. Energy: 10.0.
Returns an integer that is the number of avatars in the region.
default
{
touch_start(integer num_detected)
{
integer numberOfAvatarsInSim = llGetRegionAgentCount();
llSay(0, "There are currently "
+ (string) numberOfAvatarsInSim + " avatars in this sim.");
}
}