DayZ 1.28
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 (GetGame().IsClient() || !GetGame().IsMultiplayer())
142 {
143 switch (action_id)
144 {
145 case EActions.GIZMO_OBJECT:
147 return true;
148 case EActions.GIZMO_PHYSICS:
149 GetGame().GizmoSelectPhysics(GetPhysics());
150 return true;
151 }
152 }
153
154 if (GetGame().IsServer())
155 {
156 switch (action_id)
157 {
158 case EActions.DELETE:
159 Delete();
160 return true;
161 }
162 }
163
164 return false;
165 }
EActions
Определения EActions.c:2
proto native void GizmoSelectObject(Object object)
proto native void GizmoSelectPhysics(Physics physics)
proto native CGame GetGame()

Перекрестные ссылки GetGame(), CGame::GizmoSelectObject() и CGame::GizmoSelectPhysics().