Posts: 181
Threads: 38
Joined: Aug 2010
Reputation:
0
Does anyone have a function to return SetCameraBehindPlayer's coordinates accurately?
I basically want to detect these coordinates without settings the camera behind the player.
Cheers
Posts: 1,801
Threads: 21
Joined: Mar 2008
Reputation:
0
He is almost right. Call SetCameraBehindPlayer, wait for syncing and then get the coords of the camera.
That will give you the exact coords of the camera when doing SetCameraBehindPlayer.
Then calculate the X/Y distance between player and that position and when setting the cam, get the facing angle and add this offset in the opposite direction (GetXYInFrontOfPlayer).