15 target_entity.GetInventory().GetCurrentInventoryLocation(loc);
17 return ( player.IsAlive() && target_entity.HasEnergyManager() && target_entity.GetCompEM().CanSwitchOn() && target_entity.GetCompEM().CanWork() && loc.
GetType() ==
InventoryLocationType.GROUND );
24 if ( target_entity.GetCompEM().CanWork() )
26 target_entity.GetCompEM().
SwitchOn();
void InformPlayers(PlayerBase player, ActionTarget target, int state)
DEPRECATED delivers message ids to clients based on given context.
void ActionTarget(Object object, Object parent, int componentIndex, vector cursorHitPos, float utility, string surfaceName="")
InventoryLocationType
types of Inventory Location
ref ActionTarget m_Target
void ActionInteractBase()
override bool ActionCondition(PlayerBase player, ActionTarget target, ItemBase item)
override void OnExecuteServer(ActionData action_data)
void ActionTurnOnWhileOnGround()
proto native void SwitchOn(bool onOff)
Some inventoryItem devices can be switched on/off (radios, transmitters)
proto native int GetType()
returns type of InventoryLocation
DayZPlayerConstants
defined in C++