GetPlayerFacingAngle

From SA-MP Wiki

(Difference between revisions)
Jump to: navigation, search
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.


Parameters:
(playerid,Float:Angle)
playeridThe player you want to get the angle of.
Float:AngleThe 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.

In other languages