public LSL_Integer llGetRegionAgentCount()
{
if (!ScriptProtection.CheckThreatLevel(ThreatLevel.None, "LSL", m_host, "LSL", m_itemID)) return 0;
IEntityCountModule entityCountModule = World.RequestModuleInterface<IEntityCountModule>();
if (entityCountModule != null)
return new LSL_Integer(entityCountModule.RootAgents);
else
return new LSL_Integer(0);
}