12 override void CreateConditionComponents()
18 override bool HasTarget()
27 if ( targetObject && ( !targetObject.IsHologram() || !targetObject.IsBeingPlaced() ) )
30 targetObject.GetActionComponentNameList(target.GetComponentIndex(), selections);
32 for (
int s = 0; s < selections.Count(); s++)
34 string selection = selections[s];
35 Slot slot = targetObject.GetSlotBySelection( selection );
38 if ( item != NULL && item.GetQuantity() > 0 && targetObject.CanPlantSeed( selection ) )
49 override void OnExecuteServer(
ActionData action_data )
54 override void OnExecuteClient(
ActionData action_data )
61 Object targetObject = action_data.m_Target.GetObject();
64 if ( targetObject != NULL && targetObject.IsInherited(
GardenBase) )
68 targetObject.GetActionComponentNameList(action_data.m_Target.GetComponentIndex(), selections);
70 for (
int s = 0; s < selections.Count(); s++)
72 string selection = selections[s];
73 Slot slot = garden_base.GetSlotBySelection( selection );
76 slot_ID = slot.GetSlotId();
85 seed_IB.SplitIntoStackMax( garden_base, slot_ID, action_data.m_Player );