Exemple #1
0
        protected override void OnLocationChange(Point3D oldLocation)
        {
            if (m_NextMove == Point3D.Zero || m_NextMove != Location)
            {
                return;
            }

            // The NPC is at the waypoint
            AI = AIType.AI_Use_Default;

            CurrentWayPoint = null;
            Paralyzed       = true;

            foreach (WayPoint wp in m_WayPoints)
            {
                wp.Delete();
            }

            m_WayPoints.Clear();

            m_NextMove = Point3D.Zero;

            Direction = m_Piece.Facing;

            m_Piece.OnMoveOver();

            Server.Timer.DelayCall(TimeSpan.FromMilliseconds(500), TimeSpan.FromMilliseconds(500), 1, new TimerStateCallback(OnFacingTimer), null);
        }