예제 #1
0
파일: Bot_API.cs 프로젝트: kow/Aurora-Sim
        public void botRemoveBot(string bot)
        {
            IBotManager manager = World.RequestModuleInterface <IBotManager> ();

            if (manager != null)
            {
                manager.RemoveAvatar(UUID.Parse(bot), m_host.ParentEntity.Scene);
            }
        }
예제 #2
0
        public void botRemoveBot(string bot)
        {
            if (!ScriptProtection.CheckThreatLevel(ThreatLevel.Moderate, "botRemoveBot", m_host, "bot", m_itemID))
            {
                return;
            }
            IBotManager manager = World.RequestModuleInterface <IBotManager>();

            if (manager != null)
            {
                manager.RemoveAvatar(UUID.Parse(bot), m_host.ParentEntity.Scene, m_host.OwnerID);
            }
        }