Esempio n. 1
0
        private static void OnFoundPath(PathQuery query)
        {
            var chr       = (Character)query.ContextHandler;
            var figurines = TerrainVisualizations.ClearVis(chr);

            // spawn figurines along the path
            if (query.Path == null)
            {
                chr.SendSystemMessage("Could not find path");
                return;
            }

            var last = new NavFigurine(chr.Map, query.From);

            foreach (var vert in query.Path)
            {
                var fig = new NavFigurine(chr.Map, vert);

                var v = vert;
                last.SetOrientationTowards(ref v);
                last.ChannelObject = fig;

                figurines.Add(fig);
                last = fig;
            }
        }
Esempio n. 2
0
		private static void OnFoundPath(PathQuery query)
		{
			var chr = (Character)query.ContextHandler;
			var figurines = TerrainVisualizations.ClearVis(chr);

			// spawn figurines along the path
			if (query.Path == null)
			{
				chr.SendSystemMessage("Could not find path");
				return;
			}

			var last = new NavFigurine(chr.Map, query.From);
			foreach (var vert in query.Path)
			{
				var fig = new NavFigurine(chr.Map, vert);

				var v = vert;
				last.SetOrientationTowards(ref v);
				last.ChannelObject = fig;

				figurines.Add(fig);
				last = fig;
			}
		}