Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- if (closest.Distance <= 2300 && (closest.Name == "Acceleration Gate" || closest.Name == "Navigational Beacon"))
- {
- Logging.Log("MissionController.MoveTo Finished Action");
- _currentAction++;
- return;
- }
- else if (DateTime.Now > Cache.Instance._nextApproachAction && (closest.Name == "Acceleration Gate" || closest.Name == "Navigational Beacon"))
- {
- Logging.Log("MissionController.MoveTo: Approaching target [" + closest.Name + "][ID: " + closest.Id + "][" + Math.Round(closest.Distance / 1000, 0) + "k away]");
- closest.Approach();
- Cache.Instance._nextApproachAction = DateTime.Now.AddSeconds((int)Time.ApproachDelay_seconds);
- }
Add Comment
Please, Sign In to add comment