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

◆ OnAction()

override bool OnAction ( int action_id,
Man player,
ParamsReadContext ctx )

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

137 {
138 if (super.OnAction(action_id, player, ctx))
139 return true;
140
141 if (g_Game.IsClient() || !g_Game.IsMultiplayer())
142 {
143 switch (action_id)
144 {
145 case EActions.GIZMO_OBJECT:
146 if (GetGizmoApi())
148 return true;
149 case EActions.GIZMO_PHYSICS:
150 if (GetGizmoApi())
151 GetGizmoApi().SelectPhysics(GetPhysics());
152 return true;
153 }
154 }
155
156 if (g_Game.IsServer())
157 {
158 switch (action_id)
159 {
160 case EActions.DELETE:
161 Delete();
162 return true;
163 }
164 }
165
166 return false;
167 }
DayZGame g_Game
Определения DayZGame.c:3942
EActions
Определения EActions.c:2
proto GizmoApi GetGizmoApi()
proto void SelectObject(Object object)
proto void SelectPhysics(Physics physics)

Перекрестные ссылки g_Game, GetGizmoApi(), GizmoApi::SelectObject() и GizmoApi::SelectPhysics().