31 Object targetObject = target.GetObject();
33 if ( targetObject != NULL && targetObject.IsInherited(PlantBase) && item != NULL && !item.IsDamageDestroyed() )
35 PlantBase plant = PlantBase.Cast( targetObject );
37 if ( plant.NeedsWater() && item.GetQuantity() > 0 )
50 if ( targetObject != NULL && targetObject.IsInherited(PlantBase) )
52 PlantBase plant = PlantBase.Cast( targetObject );
54 float water = nacdata.param1;
55 Slot slot = plant.GetSlot();
57 slot.GiveWater( water );
66 if ( targetObject != NULL && targetObject.IsInherited(PlantBase) )
68 PlantBase plant = PlantBase.Cast( targetObject );
70 float water = nacdata.param1;
71 Slot slot = plant.GetSlot();
73 slot.GiveWater( water );
float GetSpecialtyWeight()
protected float m_SpecialtyWeight
protected bool m_LockTargetOnUse
ref CCIBase m_ConditionItem
ref CCTBase m_ConditionTarget
protected bool m_FullBody
class ActionTargets ActionTarget
protected ActionData m_ActionData
ref CABase m_ActionComponent
ref ActionTarget m_Target
private const float QUANTITY_USED_PER_SEC
override void CreateActionComponent()
override void OnFinishProgressServer(ActionData action_data)
override void CreateConditionComponents()
override bool ActionCondition(PlayerBase player, ActionTarget target, ItemBase item)
override void OnFinishProgressClient(ActionData action_data)
protected int m_CommandUID
protected m_CallbackClass
DayZPlayerConstants
defined in C++