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

◆ OnAction() [2/2]

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

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

543 {
544 if (super.OnAction(action_id, player, ctx))
545 return true;
546
547 if (GetGame().IsClient() || !GetGame().IsMultiplayer())
548 {
549 switch (action_id)
550 {
551 case EActions.GIZMO_OBJECT:
553 return true;
554 case EActions.GIZMO_PHYSICS:
555 GetGame().GizmoSelectPhysics(GetPhysics());
556 return true;
557 }
558 }
559
560 if (GetGame().IsServer())
561 {
562 switch (action_id)
563 {
564 case EActions.DELETE:
565 Delete();
566 return true;
567 }
568 }
569
570 return false;
571 }
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() и Man().