Anyway, I'm trying to use it in the same way one would use changeyaw(), but since there's no equivalent to vectoyaw() to set .idealpitch, I'm stucked.
Basically, I want an ai_face() that works in both X and Y axis. Directions please ?
hmmm makes sense. Thanks Spike!Spike wrote:vectoyaw is a crippled version of vectoangles, in that it only returns the yaw angle and ignores the pitch+roll angles.
Code: Select all
local vector ideal;
ideal = vectoangles(self.enemy.origin - self.origin);
self.ideal_yaw = ideal_y;
self.idealpitch = ideal_x; // this one is DP specific
ChangeYaw ();
changepitch (self); // this one is DP specific