3 private const float TIME_TO_REPEAT = 0.05;
5 override void CreateActionComponent()
24 override void CreateConditionComponents()
35 if( item.GetQuantity() <= 0 )
38 Car car = Car.Cast( target.GetObject() );
42 if( car.GetFluidFraction(
CarFluid.OIL ) >= 0.98 )
46 target.GetObject().GetActionComponentNameList(target.GetComponentIndex(), selections);
51 for (
int s = 0; s < selections.Count(); s++)
53 if ( selections[s] == carS.GetActionCompNameOil() )
55 float dist =
vector.Distance( carS.GetRefillPointPosWS(), player.GetPosition() );
57 if ( dist < carS.GetActionDistanceOil() )
66 override void OnEndAnimationLoopServer(
ActionData action_data )
68 if ( action_data.m_MainItem && action_data.m_MainItem.GetQuantity() <= 0.01 )
70 action_data.m_MainItem.SetQuantity(0);