15 target_entity.GetInventory().GetCurrentInventoryLocation(loc);
17 return ( player.IsAlive() && target_entity.HasEnergyManager() && target_entity.GetCompEM().CanSwitchOff()) && loc.
GetType() ==
InventoryLocationType.GROUND );
24 if ( target_entity.GetCompEM().CanSwitchOff() )
26 target_entity.GetCompEM().SwitchOff();
protected int m_StanceMask
protected void InformPlayers(PlayerBase player, ActionTarget target, int state)
DEPRECATED delivers message ids to clients based on given context.
class ActionTargets ActionTarget
InventoryLocationType
types of Inventory Location
ref ActionTarget m_Target
override void OnExecuteServer(ActionData action_data)
void ActionTurnOffWhileOnGround()
override bool ActionCondition(PlayerBase player, ActionTarget target, ItemBase item)
protected int m_CommandUID
proto native int GetType()
returns type of InventoryLocation
DayZPlayerConstants
defined in C++