11 Object targetObject = target.GetObject();
14 if ( target_EAI.HasEnergyManager() )
16 string selection = targetObject.GetActionComponentName(target.GetComponentIndex());
21 EntityAI device = target_EAI.GetCompEM().GetPlugOwner(selection);
30 return target_EAI.GetCompEM().IsSelectionAPlug(selection);
43 string selection = targetObject.GetActionComponentName(action_data.
m_Target.GetComponentIndex());
45 EntityAI device =
EntityAI.Cast( target_EAI.GetCompEM().GetPlugOwner(selection) );
48 device.GetCompEM().UnplugThis();
52 if ( action_data.
m_Player.IsPlacingServer() )
54 action_data.
m_Player.PlacingCancelServer();
class ActionTargets ActionTarget
ref ActionTarget m_Target
override void OnExecuteServer(ActionData action_data)
override bool ActionCondition(PlayerBase player, ActionTarget target, ItemBase item)
protected int m_CommandUID
DayZPlayerConstants
defined in C++
proto native CGame GetGame()