Hi,
i am trying to make a waypoint system for my bot and currently getting stucked in a few parts of it ...
So begin with i am trying to make it face a location.
Code:
removed since no one wanted to give a piece of advice at all
with the above code i get the difference to turn either left or right, if the return bigger than 0 turn left otherwise right.
Now the part i am not really sure on how to approch is about sending the keys and checking the difference, so the first tryout is:
Code:
removed since no one wanted to give a piece of advice at all
it works some times but it is not 100% and i did like to understand better where i am doing it wrong ...
I've tested the facelocation returns many times and it is correct looking at cheat engine values etc...
but turning it with the keys most of the times miss it...
looking forward for help or snippet of codes that can help me out