Guest User

Untitled

a guest
Jul 20th, 2018
97
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.78 KB | None | 0 0
  1. if (closest.Distance <= 2300 && (closest.Name == "Acceleration Gate" || closest.Name == "Navigational Beacon"))
  2. {
  3. Logging.Log("MissionController.MoveTo Finished Action");
  4. _currentAction++;
  5. return;
  6. }
  7. else if (DateTime.Now > Cache.Instance._nextApproachAction && (closest.Name == "Acceleration Gate" || closest.Name == "Navigational Beacon"))
  8. {
  9. Logging.Log("MissionController.MoveTo: Approaching target [" + closest.Name + "][ID: " + closest.Id + "][" + Math.Round(closest.Distance / 1000, 0) + "k away]");
  10. closest.Approach();
  11. Cache.Instance._nextApproachAction = DateTime.Now.AddSeconds((int)Time.ApproachDelay_seconds);
  12. }
Add Comment
Please, Sign In to add comment