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();
class ActionTargets ActionTarget
InventoryLocationType
types of Inventory Location
void InformPlayers(PlayerBase player, ActionTarget target, int state)
DEPRECATED delivers message ids to clients based on given context.
void ActionInteractBase()
override void OnExecuteServer(ActionData action_data)
void ActionTurnOffWhileOnGround()
override bool ActionCondition(PlayerBase player, ActionTarget target, ItemBase item)
proto native int GetType()
returns type of InventoryLocation
DayZPlayerConstants
defined in C++