NPC:GetMyFacingAngle

From SA-MP Wiki

(Difference between revisions)
Jump to: navigation, search
Revision as of 14:40, 18 March 2017
OstGot (Talk | contribs)

← Previous diff
Current revision
Freaksken (Talk | contribs)

Line 5: Line 5:
{{Description|Get the current facing angle of the NPC.}} {{Description|Get the current facing angle of the NPC.}}
-{{Parameters|Float:Angle}}+{{Parameters|&Float:Angle}}
-{{Param|Float:Angle|A float to save the angle in, passed by reference.}}+{{Param|&Float:Angle|A float to save the angle in, passed by reference.}}
{{Return| {{Return|

Current revision



NPC:GetMyFacingAngle was added in SA-MP 0.3a This function was added in SA-MP 0.3a and will not work in earlier versions!


Description:

Get the current facing angle of the NPC.


Parameters:
(&Float:Angle)
&Float:AngleA float to save the angle in, passed by reference.


Return Values:

  • The facing angle is stored in the specified variable.


Example Usage:

new Float:Angle;
GetMyFacingAngle(Angle);
printf("I am currently facing %f!", Angle);

Related Functions

The following functions may be useful, as they are related to this function in one way or another.

Personal tools