SetPlayerFacingAngle
From SA-MP Wiki
(Difference between revisions)
Revision as of 19:27, 30 July 2013 Drebin (Talk | contribs) (Typos) ← Previous diff |
Revision as of 17:24, 4 February 2014 Connor Mead (Talk | contribs) Next diff → |
||
Line 27: | Line 27: | ||
[[Category:Scripting Functions]] | [[Category:Scripting Functions]] | ||
+ | |||
+ | [[fr:SetPlayerFacingAngle]] |
Revision as of 17:24, 4 February 2014
Description:
Set a player's facing angle.
(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:
This function does not return any specific values.
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.