Guest User

Untitled

a guest
Dec 12th, 2018
62
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.27 KB | None | 0 0
  1. if((abs(previousDistanceToTarget - currentDistanceToTarget)) <
  2. predefinedGranularMovementAmount)
  3. {
  4. unitMovementDistance = CalculateMovementAmount();
  5. if(unitMovementDistance < predefinedGranularMovementAmount)
  6. {
  7. CancelUnitMovementOrder();
  8. }
  9. }
Add Comment
Please, Sign In to add comment