34 garden_base.GetActionComponentNameList(target.GetComponentIndex(), selections);
37 for (
int s = 0; s < selections.Count(); s++)
39 selection = selections[s];
40 slot = garden_base.GetSlotBySelection( selection );
45 if ( slot && slot.GetPlant() )
62 m_Text+=
" " + MiscGameplayFunctions.GetItemDisplayName(
m_Plant.GetCropsType());
95 m_Plant.Harvest( action_data.m_Player );
class ActionTargets ActionTarget
ref CCIBase m_ConditionItem
ref CCTBase m_ConditionTarget
void ActionContinuousBase()
override void CreateConditionComponents()
override void OnFinishProgressServer(ActionData action_data)
override void OnActionInfoUpdate(PlayerBase player, ActionTarget target, ItemBase item)
override bool ActionCondition(PlayerBase player, ActionTarget target, ItemBase item)
Slot GetPlantSlot(ActionTarget target)
void ActionHarvestCrops()
override void CreateActionComponent()
Super root of all classes in Enforce script.
const float DEFAULT_HARVEST
Result for an object found in CGame.IsBoxCollidingGeometryProxy.
DayZPlayerConstants
defined in C++
static proto bool CastTo(out Class to, Class from)
Try to safely down-cast base class to child class.