32 if (target_IB.CanBeDigged())
34 return target_IB.IsInherited(UndergroundStash);
43 super.OnExecuteClient(action_data);
50 super.OnExecuteServer(action_data);
68 ErrorEx(
"Cannot get entity=" + targetEntity);
73 if (!targetEntity.GetInventory().GetCurrentInventoryLocation(target_IL))
75 ErrorEx(
"Cannot get inventory location of entity=" + targetEntity);
80 UndergroundStash stash;
87 action_data.
m_Player.ServerReplaceItemWithNew(lambda);
90 g_Game.ObjectDelete(stash);
94 MiscGameplayFunctions.DealAbsoluteDmg(action_data.
m_MainItem, 10);
100 return string.
Format(
"Player %1 Dug out %2 at position %3", action_data.
m_Player, action_data.
m_Target.GetObject(), action_data.
m_Target.GetObject().GetPosition());
110 super.CopyOldPropertiesToNew(old_item, new_item);
void CreateConditionComponents()
protected float m_SpecialtyWeight
ref CCIBase m_ConditionItem
ref CCTBase m_ConditionTarget
string GetAdminLogMessage(ActionData action_data)
protected bool m_FullBody
protected int m_StanceMask
ActionDigOutStashCB ActionContinuousBaseCB ActionDigOutStash()
void SpawnParticleShovelRaise(ActionData action_data)
class ActionTargets ActionTarget
void ParticleManager(ParticleManagerSettings settings)
Constructor (ctor)
protected ActionData m_ActionData
protected void OnFinishProgressServer(ActionData action_data)
ref CABase m_ActionComponent
ref ActionTarget m_Target
override void CreateActionComponent()
protected void OnExecuteServer(ActionData action_data)
protected void OnExecuteClient(ActionData action_data)
override bool ActionCondition(PlayerBase player, ActionTarget target, ItemBase item)
Super root of all classes in Enforce script.
override void CopyOldPropertiesToNew(notnull EntityAI old_item, EntityAI new_item)
void DigOutStashLambda(EntityAI old_item, string new_item_type, PlayerBase player)
this one is a bit special: it drops all items and destroys the ex-root of the hierarchy
ItemBase GetStashedItem()
static const int DIGGING_STASH
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.
static proto string Format(string fmt, void param1=NULL, void param2=NULL, void param3=NULL, void param4=NULL, void param5=NULL, void param6=NULL, void param7=NULL, void param8=NULL, void param9=NULL)
Gets n-th character from string.