23.05.2009, 17:52
When I try to set the camera to a certain point from where I was last facing, it turns to the right hand side of the screen instead of forwards.
How I store the coordinates in this variable:
And here is the viewing:
When viewed, it just turns to the right, do I need to set it to view the angle?
Halp!
How I store the coordinates in this variable:
pawn Код:
GetPlayerPos(playerid, SavePos[playerid][picX], SavePos[playerid][picY], SavePos[playerid][picZ]);
GetPlayerFacingAngle(playerid, SavePos[playerid][picA]);
pawn Код:
SetPlayerPos(playerid, SavePos[playerid][picX], SavePos[playerid][picY], SavePos[playerid][picZ]+10); // so the player isn't visible.
SetPlayerFacingAngle(playerid, SavePos[playerid][picA]);
SetPlayerCameraPos(playerid, SavePos[playerid][picX], SavePos[playerid][picY], SavePos[playerid][picZ]);
SetPlayerCameraLookAt(playerid, SavePos[playerid][picX], SavePos[playerid][picY], SavePos[playerid][picZ]);
Halp!