Skip to main content

GetMyFacingAngle

Description

Get the current facing angle of the NPC.

NameDescription
&Float:AngleA float to save the angle in, passed by reference.

Returns

The facing angle is stored in the specified variable.

Examples

public OnPlayerText(playerid, text[])
{
new Float:Angle;
GetMyFacingAngle(Angle);
printf("I am currently facing %f!", Angle);