Camera Angles?
#1

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.
Reply
#2

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.
Reply
#3

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.
Reply
#4

Bump?
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)