30 Print(
"ActionSawPlanksCB | Item detection error, assigning negative time");
64 Object target_O = target.GetObject();
66 if ( item && target_O.IsInherited(PileOfWoodenPlanks))
68 string item_type = item.GetType();
73 if ( item.HasEnergyManager() && item.GetCompEM().CanWork() )
92 PileOfWoodenPlanks item_POWP = PileOfWoodenPlanks.Cast( action_data.
m_Target.GetObject() );
93 item_POWP.RemovePlanks(
YIELD);
99 m_Planks.GetInventory().GetCurrentInventoryLocation(currentLoc);
106 m_Planks.GetInventory().GetCurrentInventoryLocation(currentLoc);
118 m_Planks.GetInventory().GetCurrentInventoryLocation(currentLoc);
129 string item_type = item.GetType();
float GetSpecialtyWeight()
protected float m_SpecialtyWeight
protected bool m_LockTargetOnUse
ref CCIBase m_ConditionItem
ref CCTBase m_ConditionTarget
protected bool m_FullBody
protected int m_StanceMask
class ActionTargets ActionTarget
const int ECE_PLACE_ON_SURFACE
protected ActionData m_ActionData
ref CABase m_ActionComponent
ref ActionTarget m_Target
static const float TIME_SAW_HANDSAW
static const float TIME_AXES
static const float TIME_SAW_HACKSAW
override void CreateActionComponent()
override void OnFinishProgressServer(ActionData action_data)
static const int DECREASE_HEALTH_OF_TOOL_DEFAULT
override void CreateConditionComponents()
ref InventoryLocation m_PlanksLocation
override bool ActionCondition(PlayerBase player, ActionTarget target, ItemBase item)
protected int m_CommandUID
protected m_CallbackClass
proto native bool CompareLocationOnly(notnull InventoryLocation other)
proto native InventoryLocation Copy(notnull InventoryLocation rhs)
copies location data to another location
DayZPlayerConstants
defined in C++
proto native CGame GetGame()
proto void Print(void var)
Prints content of variable to console/log.