Set PlayerFacingAngle from GetPlayerCameraFrontVector
#2

pawn Код:
new
    Float: vector_X,
    Float: vector_Y,
    Float: player_Angle
;
GetPlayerCameraFrontVector(playerid, vector_X, vector_Y, player_Angle);
player_Angle = atan2(vector_Y, vector_X) + 270.0;
I guess this is what you're looking for.
Reply


Messages In This Thread
Set PlayerFacingAngle from GetPlayerCameraFrontVector - by KoczkaHUN - 07.08.2011, 21:04
Re: Set PlayerFacingAngle from GetPlayerCameraFrontVector - by RyDeR` - 07.08.2011, 21:21

Forum Jump:


Users browsing this thread: 1 Guest(s)