• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
[Pawn] angle according to camera position
#1
Information 
As the title says, how can I make the angle of the player set according to the direction of the player's camera?

Code:
new Float:Pos_[3];

GetPlayerCameraFrontVector(playerid, Pos_[0], Pos_[1], Pos_[2]);

SetPlayerFacingAngle ( playerid , Pos_[2] ) ;





try this in OnPlayerUpdate, but it doesn't work
  Reply
#2
A vector isn't an angle. Look up vectors and the maths to convert them to angles.
  Reply
#3
Edit: I made it
  Reply


Forum Jump: