SA-MP Forums Archive
Camera Angles? - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: Camera Angles? (/showthread.php?tid=91074)



Camera Angles? - Calgon - 12.08.2009

Sorry, I'm kind of new to scripting.

At the moment, I'm trying to set a camera angle (obviously), I've set the player through the ground and their camera position to face the location, but the angle faces a completely different direction, the code I'm currently using:

Код:
SetPlayerPos(playerid, 1474.6978, -1713.1594, 8.2497);
SetPlayerCameraPos(playerid, 1481.5609, -1735.0886, 13.3828);
SetPlayerCameraLookAt(playerid, 1481.5609, -1735.0886, 13.3828);
SetPlayerFacingAngle(playerid, 180.2175);
Is there any other way of setting their camera angle? Because that doesn't work.


Re: Camera Angles? - WrathOfGenesis - 12.08.2009

pawn Код:
SetPlayerPos ( playerid , 1474.6978 , -1713.1594 , 8.2497 );
SetPlayerCameraPos ( playerid , 1481.5609 , -1735.0886 , 13.3828 );
SetPlayerCameraLookAt ( playerid , 1474.6978 , -1713.1594 , 8.2497 );
SetPlayerFacingAngle ( playerid , 180.2175 );
Try this.

The problem was you made the camera face the wrong coords.


Re: Camera Angles? - Calgon - 12.08.2009

Quote:
Originally Posted by WrathOfGenesis
pawn Код:
SetPlayerPos ( playerid , 1474.6978 , -1713.1594 , 8.2497 );
SetPlayerCameraPos ( playerid , 1481.5609 , -1735.0886 , 13.3828 );
SetPlayerCameraLookAt ( playerid , 1474.6978 , -1713.1594 , 8.2497 );
SetPlayerFacingAngle ( playerid , 180.2175 );
Try this.

The problem was you made the camera face the wrong coords.
Hasn't worked - sets the camera at the floor (correct position though, my bad for setting that wrong). Still faces the wrong place, I changed the camera position and the Facing Angle again from 180 to 0 and it still doesn't work, it's stayed the same as it was when it was 180.2175.


Re: Camera Angles? - Calgon - 12.08.2009

Bump?