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

◆ IsInFlagRange()

bool BoatScript::IsInFlagRange ( )
inlineprotected

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

543 {
544 array<vector> locations = GetGame().GetMission().GetActiveRefresherLocations();
545 if (!locations)
546 return false;
547
548 int count = locations.Count();
549 if (count > 0)
550 {
551 vector pos = GetWorldPosition();
552 for (int i = 0; i < count; i++)
553 {
554 if (vector.Distance(pos, locations.Get(i)) < DECAY_FLAG_RANGE)
555 return true;
556 }
557
558 return false;
559 }
560 else
561 return false;
562 }
const int DECAY_FLAG_RANGE
Определения BoatScript.c:44
proto native Mission GetMission()
array< vector > GetActiveRefresherLocations()
proto native CGame GetGame()

Перекрестные ссылки DECAY_FLAG_RANGE, vector::Distance(), Mission::GetActiveRefresherLocations(), GetGame() и CGame::GetMission().

Используется в DecayHealthTick().