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

◆ OnAction()

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

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

7752 {
7753#ifdef DIAG_DEVELOPER
7754 if (m_Bot && action_id > EActions.PLAYER_BOT_INTERNAL_START && action_id < EActions.PLAYER_BOT_END)
7755 {
7756 m_Bot.StartAction(action_id);
7757 return true;
7758 }
7759#endif
7760
7761 if (super.OnAction(action_id, player, ctx))
7762 return true;
7763
7764 if (GetGame().IsClient() || !GetGame().IsMultiplayer())
7765 {
7766 switch (action_id)
7767 {
7768 case EActions.GIZMO_OBJECT:
7769 GetGame().GizmoSelectObject(this);
7770 return true;
7771 case EActions.GIZMO_PHYSICS:
7772 GetGame().GizmoSelectPhysics(GetPhysics());
7773 return true;
7774 }
7775 }
7776
7777 if (GetGame().IsServer())
7778 {
7779 switch (action_id)
7780 {
7781 case EActions.DELETE:
7782 Delete();
7783 return true;
7784 }
7785 }
7786
7787 return false;
7788 }
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().