Advertisement
Guest User

Untitled

a guest
Feb 11th, 2018
167
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.28 KB | None | 0 0
  1. ///Subtract Move Points During AI Pathing
  2. var EnemyID = id;
  3.  
  4. if EnemyID.army = RED_ARMY{
  5.  
  6. if EnemyID.x >= (target_x + 64){
  7.  
  8. target_x = EnemyID.x;
  9. EnemyID.move -= 1;
  10.  
  11. }
  12.  
  13. if EnemyID.x <= (target_x - 64){
  14.  
  15. target_x = EnemyID.x;
  16. EnemyID.move -= 1;
  17.  
  18. }
  19.  
  20. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement