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

◆ IsFacingTarget()

bool ManBase::IsFacingTarget ( Object target)
inlineprotected

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

4485 {
4486 vector pdir = GetDirection();
4487 vector ptv = target.GetPosition() - GetPosition();
4488 pdir.Normalize();
4489 ptv.Normalize();
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
Определения UndergroundAreaLoader.c:9

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