26 if (gardenBase && (!gardenBase.IsHologram() || !gardenBase.IsBeingPlaced()))
29 gardenBase.GetActionComponentNameList(target.GetComponentIndex(), selections);
31 foreach (
string selection : selections)
33 Slot slot = gardenBase.GetSlotBySelection(selection);
36 if (item != null && item.GetQuantity() > 0 && gardenBase.CanPlantSeed(selection))
47 super.OnExecuteServer(action_data);
60 gardenBase.GetActionComponentNameList(action_data.
m_Target.GetComponentIndex(), selections);
62 foreach (
string selection : selections)
64 Slot slot = gardenBase.GetSlotBySelection(selection);
67 slotID = slot.GetSlotId();
73 if (seed.GetQuantity() > 1)
74 seed.SplitIntoStackMax(gardenBase, slotID, action_data.
m_Player);
76 gardenBase.ServerTakeEntityToTargetAttachmentEx(gardenBase, seed, slotID);
ref CCIBase m_ConditionItem
ref CCTBase m_ConditionTarget
void ActionTarget(Object object, Object parent, int componentIndex, vector cursorHitPos, float utility, string surfaceName="")
ref ActionTarget m_Target
override void OnExecuteServer(ActionData action_data)
void Process(ActionData action_data)
override void CreateConditionComponents()
override bool HasTarget()
override bool ActionCondition(PlayerBase player, ActionTarget target, ItemBase item)
void ActionSingleUseBase()
Result for an object found in CGame.IsBoxCollidingGeometryProxy.
DayZPlayerConstants
defined in C++