angle, angle VectorToAngles(fixed x, fixed y, fixed z)
Converts a 3D vector to a pair of angles (yaw and pitch).
Make the player look along the vector:
VectorToAngles(1.0, 2.0, 3.0); int angle = r1; int pitch = r2; SetActorAngle(tid, angle); SetActorPitch(tid, -pitch); // Note that actor pitch is inverted in ZDoom.