Пример #1
0
        public override void Process(Npc npc, Player player, Dictionary <string, string> args)
        {
            NavigationNode node = NavigationNode.Get(args["node"]);

            if (node != null)
            {
                bool force = bool.Parse(args["force"]);
                if (force)
                {
                    npc.GoTo(node.Position);
                }
                else
                {
                    npc.AddNavTarget(node);
                }
            }
        }