GetActorAngle
Jump to navigation
Jump to search
int GetActorAngle (int tid)
Usage
Returns the actor's angle.
Parameters
- tid: TID of the actor
Return value
The actor's angle as a fixed point angle value.
If the argument passed is 0, then it returns the angle of the activator.
Examples
This script will thrust an actor in the direction the player is facing when executed. This could be used to simulating pushing an actor away from you. The >> 8 function is used to convert fixed point angles to byte angles (see Definitions for more information).
script 10 ENTER { ThrustThing(GetActorAngle(0) >> 8, 50, 1, 0); }