21.02.2018, 23:55
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).
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).