コード例 #1
0
ファイル: Bot_API.cs プロジェクト: kow/Aurora-Sim
        public void botStopFollowAvatar(string bot, string avatarName)
        {
            IBotManager manager = World.RequestModuleInterface <IBotManager> ();

            if (manager != null)
            {
                manager.StopFollowAvatar(UUID.Parse(bot), avatarName);
            }
        }
コード例 #2
0
        public void botStopFollowAvatar(string bot)
        {
            if (!ScriptProtection.CheckThreatLevel(ThreatLevel.Moderate, "botStopFollowAvatar", m_host, "bot", m_itemID))
            {
                return;
            }
            IBotManager manager = World.RequestModuleInterface <IBotManager>();

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