Jump to content

[SA] How to get coords where you're aiming?


Recommended Posts

I made this question here

 

i need an addres to get the coordinates of where the player is aiming, unlike the opcode (0667: AS_actor -1 aim_at 969.3931 -1098.341 22.877 120000 ms), which is to force the actor to aim to that direction, but what i want, is to get those coordinates to be able to make a mod that i want to make
In all the mods I have seen of "aimbot" since most of them dont work, what they do is to get the coordinates of the "camera" and "target_camara" and then do a thousand mathematical operations to get where's the player aiming in the map
But is there an addres that solves that?
Like

 0A8D: $TEMPVAR_FLOAT_1 = read_memory 0x00000000 size 4 virtual_protect 0 //X
 0A8D: $TEMPVAR_FLOAT_2 = read_memory 0x00000004 size 4 virtual_protect 0 //Y
 0A8D: $TEMPVAR_FLOAT_3 = read_memory 0x00000008 size 4 virtual_protect 0 //Z
// So, i could do something like "create_explosion_at $TEMPVAR_FLOAT_1 $TEMPVAR_FLOAT_2 $TEMPVAR_FLOAT_3"
In case there is no addres showing these coordinates, what would it look like?
Edited by Shiro Naomi
Link to comment
https://gtaforums.com/topic/977826-sa-how-to-get-coords-where-youre-aiming/
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • 0 User Currently Viewing
    0 members, 0 Anonymous, 0 Guests

×
×
  • Create New...

Important Information

By using GTAForums.com, you agree to our Terms of Use and Privacy Policy.