GetPlayerFacingAngle
From SA-MP Wiki
GetPlayerFacingAngle
Return angle of the direction the player is facing.
(playerid,Float:Angle)
| playerid | The player you want to get the angle of. |
| Float:Angle | The Float to store the angle in, passed by reference. |
This function does not return a specific value.
new Float:Angle; GetPlayerFacingAngle(playerid, Angle); if(Angle == 180.0) SendClientMessage(playerid, 0xFFFFFFFF, "You are facing South!");
Related Functions
The following functions might be useful as well, as they're related to this function in one way or another.
- GetVehicleZAngle: Check the current angle of a vehicle.
- SetPlayerFacingAngle: Set a player's facing angle.
