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

◆ OnEndServer()

override void ActionViewOptics::OnEndServer ( ActionData action_data)
inlineprivate

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

108 {
109 super.OnEndServer(action_data);
110
111 ItemOptics optic;
112 if (Class.CastTo(optic, action_data.m_MainItem) && optic.IsInOptics())
113 {
114 ExitOptics(optic, action_data.m_Player);
115 }
116
117 if (!GetGame().IsMultiplayer())
118 GetGame().GetMission().RemoveActiveInputExcludes({"actonViewOpticExcl"});
119 }
StarlightOptic ItemOptics
void ExitOptics(ItemOptics optic, PlayerBase player)
Определения ActionViewOptics.c:168
proto native Mission GetMission()
proto native bool IsInOptics()
is weapon in optics mode or not
void RemoveActiveInputExcludes(array< string > excludes, bool bForceSupress=false)
deprecated
proto native CGame GetGame()

Перекрестные ссылки ActionData, Class::CastTo(), ExitOptics(), GetGame(), CGame::GetMission(), ItemOptics::IsInOptics() и Mission::RemoveActiveInputExcludes().