Example #1
0
        public void MoveTowards(Vector3 location)
        {
            if (ShouldFly && !MovementManager.IsFlying && !IsTakingOff)
            {
                IsTakingOff             = true;
                IsMovingTowardsLocation = true;
                EnsureFlying();
            }

            if (!IsTakingOff)
            {
                lastDestination         = location;
                IsMovingTowardsLocation = true;
                InnerMover.MoveTowards(location);
            }
        }
Example #2
0
        public void MoveTowards(Vector3 location)
        {
            if (IsLanding && location.Distance3D(Core.Me.Location) < CharacterSettings.Instance.MountDistance)
            {
                ForceLanding();
                return;
            }
            if (ShouldFly && !MovementManager.IsFlying && !IsTakingOff)
            {
                IsTakingOff             = true;
                IsMovingTowardsLocation = true;
                EnsureFlying();
            }

            if (!IsTakingOff)
            {
                IsMovingTowardsLocation = true;
                InnerMover.MoveTowards(location);
            }
        }