NPC:GetMyFacingAngle

From SA-MP Wiki

(Difference between revisions)
Jump to: navigation, search
Revision as of 09:52, 23 August 2013
Smithy (Talk | contribs)

← Previous diff
Current revision
OstGot (Talk | contribs)

Line 8: Line 8:
{{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|The current facing angle of the NPC.}}+{{Return|
 +* The facing angle is stored in the specified variable.}}
 +{{Example}}
<pawn> <pawn>
new Float:Angle; new Float:Angle;

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