15 target_entity.GetInventory().GetCurrentInventoryLocation(loc);
17 return ( player.IsAlive() && target_entity.HasEnergyManager() && target_entity.GetCompEM().CanSwitchOff() && loc.GetType() ==
InventoryLocationType.GROUND );
20 override void OnExecuteServer( ActionData action_data )
24 if ( target_entity.GetCompEM().CanSwitchOff() )
26 target_entity.GetCompEM().SwitchOff();
void InformPlayers(PlayerBase player, ActionTarget target, int state)
DEPRECATED delivers message ids to clients based on given context.