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

◆ ActionCondition()

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

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

38 {
39 ItemOptics optic;
40 if (Class.CastTo(optic, item) && !optic.IsInOptics() && !player.IsNVGLowered())
41 {
42 return true;
43 }
44 return false;
45 }
proto native bool IsInOptics()
is weapon in optics mode or not

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