SetPlayerFacingAngle
From SA-MP Wiki
(Redirected from Function:SetPlayerFacingAngle)
Description:
Set a player's facing angle (Z rotation).
(playerid, Float:ang)
playerid | The ID of the player to set the facing angle of. |
Float:ang | The angle the player should face. |
Return Values:
- 1: The function executed successfully.
- 0: The function failed to execute. The player specified does not exist.
Example Usage:
SetPlayerFacingAngle( playerid, 0 ); //Player faces north
north (0) | (90) west- -east (270) (Good way to remember: Never Eat Shredded Wheat) | south (180)
Related Functions
The following functions may be useful, as they are related to this function in one way or another.
- GetPlayerFacingAngle: Check where a player is facing.
- SetPlayerPos: Set a player's position.