GetPlayerFacingAngle
From SA-MP Wiki
(Difference between revisions)
Revision as of 16:53, 14 April 2010 Mikep (Talk | contribs) (Better example) ← Previous diff |
Revision as of 17:15, 4 February 2014 Connor Mead (Talk | contribs) Next diff → |
||
Line 1: | Line 1: | ||
{{Scripting}} | {{Scripting}} | ||
- | {{Title}} | ||
{{Description|Return angle of the direction the player is facing.}} | {{Description|Return angle of the direction the player is facing.}} | ||
Line 22: | Line 21: | ||
[[Category:Scripting Functions]] | [[Category:Scripting Functions]] | ||
+ | |||
+ | [[fr:GetPlayerFacingAngle]] |
Revision as of 17:15, 4 February 2014
Description:
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. |
Return Values:
This function does not return any specific values.
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.