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

◆ ActionCondition()

override bool ActionViewBinoculars::ActionCondition ( PlayerBase player,
ActionTarget target,
ItemBase item )
inlineprivate

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

19 {
20 ItemOptics optic;
21 if( Class.CastTo(optic, item) && !optic.IsInOptics() && !player.IsNVGLowered() )
22 {
23 return true;
24 }
25 return false;
26 }
proto native bool IsInOptics()
is weapon in optics mode or not

Перекрестные ссылки ActionTarget, Class::CastTo() и ItemOptics::IsInOptics().