Пример #1
0
        public void botSetShouldFly(string keyOfBot, int ShouldFly)
        {
            IBotManager manager = World.RequestModuleInterface <IBotManager> ();

            if (manager != null)
            {
                manager.SetBotShouldFly(UUID.Parse(keyOfBot), ShouldFly == 1);
            }
        }
Пример #2
0
        public void botSetShouldFly(string keyOfBot, int ShouldFly)
        {
            if (!ScriptProtection.CheckThreatLevel(ThreatLevel.Moderate, "botSetShouldFly", m_host, "bot", m_itemID))
            {
                return;
            }
            IBotManager manager = World.RequestModuleInterface <IBotManager>();

            if (manager != null)
            {
                manager.SetBotShouldFly(UUID.Parse(keyOfBot), ShouldFly == 1, m_host.OwnerID);
            }
        }