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

◆ HasProperDistance() [4/4]

override bool BaseBuildingBase::HasProperDistance ( string selection,
PlayerBase player )
inlineprivate

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

547 {
548 if ( MemoryPointExists( selection ) )
549 {
550 vector selection_pos = ModelToWorld( GetMemoryPointPos( selection ) );
551 float distance = vector.Distance( selection_pos, player.GetPosition() );
552 if ( distance >= MAX_ACTION_DETECTION_DISTANCE )
553 {
554 return false;
555 }
556 }
557
558 return true;
559 }
const float MAX_ACTION_DETECTION_DISTANCE
Определения Fence.c:17

Перекрестные ссылки vector::Distance() и MAX_ACTION_DETECTION_DISTANCE.