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

◆ IsInFlagRange()

bool BoatScript::IsInFlagRange ( )
inlineprotected

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

497 {
498 array<vector> locations = GetGame().GetMission().GetActiveRefresherLocations();
499 if (!locations)
500 return false;
501
502 int count = locations.Count();
503 if (count > 0)
504 {
505 vector pos = GetWorldPosition();
506 for (int i = 0; i < count; i++)
507 {
508 if (vector.Distance(pos, locations.Get(i)) < DECAY_FLAG_RANGE)
509 return true;
510 }
511
512 return false;
513 }
514 else
515 return false;
516 }
const int DECAY_FLAG_RANGE
Определения BoatScript.c:33
proto native Mission GetMission()
array< vector > GetActiveRefresherLocations()
proto native CGame GetGame()

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

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