Jump to content

GTA: VC - Player Position (x, y, z)


pivke

Recommended Posts

Hello,

I would like to know how to get the x, y and z-position of Tommy. The reference says, that you can find the coordinates on this address:

x: 0x94AD28 + 0x34

y: 0x94AD28 + 0x38

z: 0x94AD28 + 0x3C

 

But when i Want to read out the addresses with C++, i only get 0-values. Im not a beginner in programming, so this won't be my mistake. I just think that I have a thinking-problem with the memory-addresses.

 

How can I understand where the "real"-coordinates are?

 

And sorry for my bad english, im german.

 

Thank's so far!

Link to comment
Share on other sites

Try to add those offsets to actor's struct base adress.

I have experemented with actor's rot&pos matrix in GTA3 (those offsets are same there) few months ago, as I remember, it works fine for me.

Link to comment
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
  • 1 User Currently Viewing
    0 members, 0 Anonymous, 1 Guest

×
×
  • Create New...

Important Information

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