Cheat Engine Forum Index Cheat Engine
The Official Site of Cheat Engine
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 


Scan certain x & y coord

 
Post new topic   Reply to topic    Cheat Engine Forum Index -> Cheat Engine Lua Scripting
View previous topic :: View next topic  
Author Message
microsoftv
Advanced Cheater
Reputation: 0

Joined: 07 Apr 2016
Posts: 82
Location: U.S

PostPosted: Fri Jun 03, 2016 10:36 pm    Post subject: Scan certain x & y coord Reply with quote

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.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    Cheat Engine Forum Index -> Cheat Engine Lua Scripting All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group

CE Wiki   IRC (#CEF)   Twitter
Third party websites