SetActorFacingAngle
From SA-MP Wiki
Description:
Set the facing angle of an actor.
(actorid, Float:ang)
actorid | The ID of the actor to set the facing angle of. Returned by CreateActor. |
ang | The facing angle to set for the actor. |
Return Values:
- 1: The function executed successfully.
- 0: The function failed to execute. The actor specified does not exist.
Note | When creating an actor with CreateActor, you specify it's facing angle. You do not need to use this function unless you want to change its facing angle later. |
new MyActor; public OnGameModeInit() { MyActor = CreateActor(...); return 1; } // Somewhere else SetActorFacingAngle(MyActor, 180.0);
Related Functions
The following functions may be useful, as they are related to this function in one way or another.
- GetActorFacingAngle: Get the facing angle of an actor.
- SetActorPos: Set the position of an actor.