DayZ 1.28
DayZ Explorer by KGB
 
Загрузка...
Поиск...
Не найдено

◆ IsFacingTarget()

bool ManBase::IsFacingTarget ( Object target)
inlineprotected

См. определение в файле PlayerBase.c строка 4474

4475 {
4476 vector pdir = GetDirection();
4477 vector ptv = target.GetPosition() - GetPosition();
4478 pdir.Normalize();
4479 ptv.Normalize();
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
Определения UndergroundAreaLoader.c:9

Перекрестные ссылки Math::AbsFloat(), GetPosition и vector::Normalize().