GetActorFacingAngle

GetActorFacingAngle

Description:
Function GetActorFacingAngle get the facing angle of an actor.
Function GetActorFacingAngle was added in 0.3.7 and will not work in earlier versions!


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


Return Values:
  • 1: The function was 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.


Examples:
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.


Related Callbacks
The following callbacks might be useful as well, as they are related to this callback in one way or another.