153 {
154 #ifdef DIAG_DEVELOPER
155 if (!ent || ent.IsSetForDeletion())
156 return;
157
158 PlayerBase player = PlayerBase.Cast(
g_Game.GetPlayer());
159 if (player)
160 {
161 player.GetActionManager().OnInstantAction(ActionDebug, new Param2<EntityAI, int>(ent, actionId));
162 }
163 else
164 {
166 }
167 #endif
168 }
override bool OnAction(int action_id, Man player, ParamsReadContext ctx)