3 bool m_RPCStopAlreadySent;
4 override void CreateActionComponent()
9 EmptiedQuantity = bottle.GetLiquidEmptyRate() * bottle.GetLiquidThroughputCoef();
27 override void CreateConditionComponents()
33 override bool HasTarget()
43 if (item.IsLiquidPresent())
50 override bool ActionConditionContinue(
ActionData action_data )
52 if (action_data.m_MainItem.GetQuantity() > action_data.m_MainItem.GetQuantityMin())
59 override void OnStartAnimationLoop(
ActionData action_data )
61 SendRPC(action_data,
true);
64 override void OnEndAnimationLoop(
ActionData action_data )
66 SendRPC(action_data,
false);
69 override void OnEndServer(
ActionData action_data )
71 SendRPC(action_data,
false);
74 protected void SendRPC(
ActionData actionData,
bool enable)
79 if (comp.m_RPCStopAlreadySent)
83 Param1<bool> play =
new Param1<bool>( enable );
86 comp.m_RPCStopAlreadySent =
true;