13 override typename GetInputType()
18 override bool HasProgress()
23 override bool CanBeUsedOnBack()
32 if (!targetItem || !targetItem.IsTakeable() || targetItem.IsBeingPlaced() || (targetItem.GetCompEM() && !targetItem.GetCompEM().IsPlugged()) || ( targetItem.GetHierarchyParent() && !
BaseBuildingBase.Cast(targetItem.GetHierarchyParent()) ) || ((targetParent && !targetItem.CanDetachAttachment(targetParent)) || (targetParent && !targetParent.CanReleaseAttachment(targetItem))))
35 if (targetItem.HasEnergyManager() && targetItem.GetCompEM().IsPlugged())
36 return player.GetInventory().CanAddEntityIntoHands(targetItem);
41 override bool CanContinue(
ActionData action_data)
44 return ent && ent.GetCompEM().GetCordLength() > 0;
49 super.Start(action_data);
53 action_data.m_Player.PlacingStartServer(ntarget);
55 action_data.m_Player.TogglePlacingLocal(ntarget);
58 override void OnExecuteServer(
ActionData action_data)
67 action_data.m_Player.PredictiveTakeEntityToHands(ntarget);
70 override void OnExecuteClient(
ActionData action_data)
76 action_data.m_Player.PredictiveTakeEntityToHands(ntarget);
79 override void CreateAndSetupActionCallback(
ActionData action_data)
86 if (target.IsHeavyBehaviour())
92 Class.CastTo(callback, action_data.m_Player.AddCommandModifier_Action(
DayZPlayerConstants.CMD_ACTIONMOD_PICKUP_HANDS,GetCallbackClassTypename()));
95 callback.SetActionData(action_data);
96 callback.InitActionComponent();
97 action_data.m_Callback = callback;
101 protected ItemBase m_SourceForReplug;