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

◆ OnEndServer()

override void ActionViewOptics::OnEndServer ( ActionData action_data)
inlineprivate

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

102 {
103 super.OnEndServer(action_data);
104
105 ItemOptics optic;
106 if (Class.CastTo(optic, action_data.m_MainItem) && optic.IsInOptics())
107 {
108 ExitOptics(optic, action_data.m_Player);
109 }
110
111 if (!GetGame().IsMultiplayer())
112 GetGame().GetMission().RemoveActiveInputExcludes({"actonViewOpticExcl"});
113 }
void ExitOptics(ItemOptics optic, PlayerBase player)
Определения ActionViewOptics.c:159
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().