GetActorFacingAngle

From SA-MP Wiki

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

← Previous diff
Current revision
Jelly23 (Talk | contribs)

Line 6: Line 6:
{{Parameters|actorid, &Float:ang}} {{Parameters|actorid, &Float:ang}}
{{Param|actorid|The ID of the actor to get the facing angle of. Returned by [[CreateActor]].}} {{Param|actorid|The ID of the actor to get the facing angle of. Returned by [[CreateActor]].}}
-{{Param|ang|A float variable, passed by reference, in to which the actor's facing angle will be stored.}}+{{Param|&Float:ang|A float variable, passed by reference, in to which the actor's facing angle will be stored.}}
{{ReturnsSuccess||The actor specified does not exist. {{ReturnsSuccess||The actor specified does not exist.

Current revision


GetActorFacingAngle was added in SA-MP 0.3.7 This function was added in SA-MP 0.3.7 and will not work in earlier versions!


Description:

Get the facing angle of an actor.


Parameters:
(actorid, &Float:ang)
actoridThe ID of the actor to get the facing angle of. Returned by CreateActor.
&Float:angA float variable, passed by reference, in to which the actor's facing angle will be stored.


Return Values:

  • 1: The function executed successfully.
  • 0: The function failed to execute. The actor specified does not exist.
  • The actor's facing angle is stored in the specified variable.


new Float:angle;
GetActorFacingAngle(actorid, angle);

Related Functions

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

Personal tools
In other languages