4485 {
4486 vector pdir = GetDirection();
4487 vector ptv = target.GetPosition() -
GetPosition();
4490
4491 if (Math.AbsFloat(pdir[0]-ptv[0]) < 0.5 && Math.AbsFloat(pdir[2]-ptv[2]) < 0.5)
4492 {
4493 return true;
4494 }
4495 return false;
4496 }
proto float Normalize()
Normalizes vector. Returns length.
class JsonUndergroundAreaTriggerData GetPosition