GetPlayerFacingAngle
From SA-MP Wiki
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. |
| Returns | This function doesn't return a specific value |
new Float:Angle, string[26]; GetPlayerFacingAngle(playerid, Angle); format(string, sizeof(string), "Your facing angle: %0.2f", Angle); SendClientMessage(playerid, 0xFFFFFFFF, string);
Related Functions
The following functions may be useful, as they are related to this function in one way or another.
- GetVehicleZAngle: Check the current angle of a vehicle.
- SetPlayerFacingAngle: Set a player's facing angle.
