17 m_SpecialtyWeight = UASoftSkillsWeight.ROUGH_LOW;
18 m_Text =
"#dig_stash";
29 if (!super.Can(player, target, item, condition_mask))
41 if (target_IB.CanBeDigged())
43 return target_IB.IsInherited(UndergroundStash);
52 super.OnExecuteClient(action_data);
59 super.OnExecuteServer(action_data);
77 ErrorEx(
"Cannot get entity=" + targetEntity);
82 if (!targetEntity.GetInventory().GetCurrentInventoryLocation(target_IL))
84 ErrorEx(
"Cannot get inventory location of entity=" + targetEntity);
89 UndergroundStash stash;
96 action_data.m_Player.ServerReplaceItemWithNew(lambda);
99 g_Game.ObjectDelete(stash);
103 MiscGameplayFunctions.DealEvinronmentAdjustedDmg(action_data.m_MainItem, action_data.m_Player, 10);
108 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());
118 super.CopyOldPropertiesToNew(old_item, new_item);
ActionDigOutStashCB ActionContinuousBaseCB ActionDigOutStash()
void SpawnParticleShovelRaise(ActionData action_data)
class ActionTargets ActionTarget
void ParticleManager(ParticleManagerSettings settings)
Constructor (ctor)
string GetAdminLogMessage(ActionData action_data)
bool Can(PlayerBase player, ActionTarget target, ItemBase item, int condition_mask)
void CreateConditionComponents()
void OnFinishProgressServer(ActionData action_data)
override void CreateActionComponent()
override bool ActionCondition(PlayerBase player, ActionTarget target, ItemBase item)
void OnExecuteServer(ActionData action_data)
void OnExecuteClient(ActionData action_data)
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)
void DropEquipAndDestroyRootLambda(EntityAI old_item, string new_item_type, PlayerBase player)
ItemBase GetStashedItem()
static const int DIGGING_STASH
static const vector Forward
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.