42 if (
player.IsPlacingLocal())
48 if (
targetIB.GetInventory().IsAttachment())
51 if (
targetIB.IsInherited(UndergroundStash))
56 if (
targetIB.GetInventory().IsInCargo())
110 if (!
GetGame().IsMultiplayer())
138 stash.PlaceOnGround();
154 return string.Format(
"Player %1 Dug in %2 at position %3",
action_data.m_Player,
action_data.m_Target.GetObject(),
action_data.m_Target.GetObject().GetPosition());
ref CCIBase m_ConditionItem
ref CCTBase m_ConditionTarget
const int ECE_PLACE_ON_SURFACE
void ParticleManager(ParticleManagerSettings settings)
Constructor (ctor)
ref CABase m_ActionComponent
override void CreateActionComponent()
override void OnExecuteServer(ActionData action_data)
void SpawnParticleShovelRaise(ActionData action_data)
override void CreateConditionComponents()
override void OnFinishProgressServer(ActionData action_data)
override void OnExecuteClient(ActionData action_data)
static float m_DigStashSlopeTolerance
override bool ActionCondition(PlayerBase player, ActionTarget target, ItemBase item)
override string GetAdminLogMessage(ActionData action_data)
override bool Can(PlayerBase player, ActionTarget target, ItemBase item, int condition_mask)
Super root of all classes in Enforce script.
static void Log(string message=LOG_DEFAULT, string plugin=LOG_DEFAULT, string author=LOG_DEFAULT, string label=LOG_DEFAULT, string entity=LOG_DEFAULT)
Prints debug message with normal prio.
script counterpart to engine's class Inventory
static proto native bool LocationCanRemoveEntity(notnull InventoryLocation inv_loc)
queries if the entity contained in inv_loc.m_item can be removed from ground/attachment/cargo/hands/....
static string DumpToStringNullSafe(InventoryLocation loc)
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.