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() )
74 action_data.
m_Player.PredictiveTakeEntityToHands(ntarget);
84 action_data.
m_Player.PredictiveTakeEntityToHands(ntarget);
94 if (target.IsHeavyBehaviour())
ref CCIBase m_ConditionItem
ref CCTBase m_ConditionTarget
bool HasProgress()
For UI: hiding of progress bar.
DetachActionData m_ItemName
class ActionTargets ActionTarget
void InitActionComponent()
void SetActionData(ActionData action_data)
ref ActionTarget m_Target
override void CreateConditionComponents()
void UnlockInventory(ActionData action_data)
protected void OnExecuteServer(ActionData action_data)
protected void OnExecuteClient(ActionData action_data)
override bool ActionCondition(PlayerBase player, ActionTarget target, ItemBase item)
override bool HasProneException()
protected void CreateAndSetupActionCallback(ActionData action_data)
Super root of all classes in Enforce script.
override bool IsTakeable()
DayZPlayerConstants
defined in C++
proto native CGame GetGame()
static proto bool CastTo(out Class to, Class from)
Try to safely down-cast base class to child class.