5 override void CreateActionComponent()
21 override void CreateConditionComponents()
29 Object targetObject = target.GetObject();
31 if ( targetObject != NULL && targetObject.IsInherited(PlantBase) && !item.IsDamageDestroyed() )
33 PlantBase plant = PlantBase.Cast( targetObject );
35 if ( plant.IsGrowing() && plant.NeedsSpraying() )
37 if ( item.GetQuantity() > 0 )
47 override void OnExecuteServer(
ActionData action_data )
49 Object targetObject = action_data.m_Target.GetObject();
51 if ( targetObject != NULL && targetObject.IsInherited(PlantBase) )
54 PlantBase plant = PlantBase.Cast( targetObject );
55 Param1<float> nacdata = Param1<float>.Cast( action_data.m_ActionComponent.GetACData() );