microsoftv Advanced Cheater Reputation: 0
Joined: 07 Apr 2016 Posts: 82 Location: U.S
|
Posted: Fri Jun 03, 2016 10:36 pm Post subject: Scan certain x & y coord |
|
|
In the game, i'm currently coding a bot for a friend so he can train to get better. I have run into an issue which I can't find a solution to easily, so what i'm wanting to do is scan an x and y coord relative to an already preset x and y coord (scan bot x & y coord relative to "enemy" x & y coord that is constantly moving). I want to do Code: | if enemyxcoord = 38298 and botxcoord = 38298 then doKeyPress(VK_Z) -- Attack
if enemyycoord = 29587 and botycoord = 29587 then doKeyPress(VK_Z)
end
end |
But the hitbox of the bot isn't just one x and y, it's an area, and I can't seem to figure out how to scan or record what is happening in an area/hitbox.
|
|