Mr-A

AI sample A-script

Mar 30th, 2016
106
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Ruby 0.39 KB | None | 0 0
  1. <<-init
  2.   $target = get_nearest(<<return @this.team != @team>>)
  3. init
  4.  
  5. <<-main
  6.   if (@target:z_position > @target:z_position) do
  7.     hold_key("<up>")
  8.   else
  9.     hold_key("<down>")
  10.   end
  11.  
  12.   if (@target:x_position > @target:x_position) do
  13.     hold_key("<right>")
  14.   else
  15.     hold_key("<left>")
  16.   end
  17.  
  18.   if ( distance_between($this, $target) < 50 ) do
  19.     tap_key("<0>", 1)
  20.   end
  21. main
Add Comment
Please, Sign In to add comment