9 m_Text =
"#connect_together";
20 if (super.Can(player, target, item))
22 if (player.IsPlacingLocal())
26 player.GetHologramLocal().SetIsHidden(
true);
27 player.GetHologramLocal().GetProjectionEntity().HideAllSelections();
31 if (!super.Can(player, target, item))
37 player.GetHologramLocal().SetIsHidden(
false);
38 player.GetHologramLocal().GetProjectionEntity().ShowAllSelections();
42 return super.Can(player, target, item);
50 if (targetIB && targetIB.GetHierarchyRoot() == targetIB && item && targetIB.HasEnergyManager() && item.HasEnergyManager())
52 if (!targetIB.GetCompEM().IsPlugged() && item.GetCompEM().CanReceivePlugFrom(targetIB))
61 MetalWire metalWire = MetalWire.Cast( item.GetCompEM().GetPluggedDevice());
63 if (metalWire && metalWire.GetCompEM().CanReceivePlugFrom(targetIB))
96 MetalWire metalWire = MetalWire.Cast(action_data.
m_MainItem.GetCompEM().GetPluggedDevice());
100 targetIB.GetCompEM().PlugThisInto(metalWire);
106 targetIB.GetCompEM().PlugThisInto(action_data.
m_MainItem);
ref CCIBase m_ConditionItem
ref CCTBase m_ConditionTarget
class ActionTargets ActionTarget
ref ActionTarget m_Target
override void OnExecuteServer(ActionData action_data)
override void CreateConditionComponents()
override void OnExecuteClient(ActionData action_data)
override bool IsDeploymentAction()
override bool Can(PlayerBase player, ActionTarget target, ItemBase item)
override bool ActionCondition(PlayerBase player, ActionTarget target, ItemBase item)
void ActionPlugTargetIntoThis()
void Process(ActionData action_data)
protected int m_CommandUID
override bool IsElectricAppliance()
DayZPlayerConstants
defined in C++