4475 {
4476 vector pdir = GetDirection();
4477 vector ptv = target.GetPosition() -
GetPosition();
4480
4481 if (Math.AbsFloat(pdir[0]-ptv[0]) < 0.5 && Math.AbsFloat(pdir[2]-ptv[2]) < 0.5)
4482 {
4483 return true;
4484 }
4485 return false;
4486 }
proto float Normalize()
Normalizes vector. Returns length.
class JsonUndergroundAreaTriggerData GetPosition