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

◆ HasProperDistance() [4/4]

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

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

552 {
553 if ( MemoryPointExists( selection ) )
554 {
555 vector selection_pos = ModelToWorld( GetMemoryPointPos( selection ) );
556 float distance = vector.Distance( selection_pos, player.GetPosition() );
557 if ( distance >= MAX_ACTION_DETECTION_DISTANCE )
558 {
559 return false;
560 }
561 }
562
563 return true;
564 }
const float MAX_ACTION_DETECTION_DISTANCE
Определения Fence.c:16

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