44 if ( !tgt_item || !tgt_entity || !tgt_parent )
47 if ( !tgt_parent || !tgt_item.IsItemBase() || !tgt_item.IsTakeable() || tgt_item.IsBeingPlaced() )
50 if ( player.GetCommand_Vehicle() )
53 if ( player.GetInventory().CanAddEntityIntoHands(tgt_entity) )
55 if ( tgt_entity.GetHierarchyRootPlayer() != player )
57 if ( tgt_entity.CanDetachAttachment( tgt_parent ) && tgt_parent.CanReleaseAttachment( tgt_entity ) )
67 if (
GetGame().IsMultiplayer() )
71 am.UnlockInventory(action_data);
74 action_data.m_Player.PredictiveTakeEntityToHands(ntarget);
81 am.UnlockInventory(action_data);
84 action_data.m_Player.PredictiveTakeEntityToHands(ntarget);
94 if (target.IsHeavyBehaviour())
102 Class.CastTo(callback, action_data.m_Player.AddCommandModifier_Action(
DayZPlayerConstants.CMD_ACTIONMOD_PICKUP_HANDS,GetCallbackClassTypename()));
109 callback.SetActionData(action_data);
110 callback.InitActionComponent();
111 action_data.m_Callback = callback;