public void botRemoveBot(string bot) { IBotManager manager = World.RequestModuleInterface <IBotManager> (); if (manager != null) { manager.RemoveAvatar(UUID.Parse(bot), m_host.ParentEntity.Scene); } }
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); } }