3 private const float TIME_TO_REPEAT = 0.5;
5 override void CreateActionComponent()
13 const string FUEL_SELECTION_NAME =
"refill";
26 override void CreateConditionComponents()
37 if ( item.GetQuantity() <= 0 )
43 Car car = Car.Cast( target.GetObject() );
47 if (car.IsDamageDestroyed())
52 if ( car.GetFluidFraction(
CarFluid.FUEL ) >= 0.98 )
56 target.GetObject().GetActionComponentNameList(target.GetComponentIndex(), selections);
62 for (
int s = 0; s < selections.Count(); s++)
64 if ( selections[s] == carS.GetActionCompNameFuel() )
66 float dist =
vector.DistanceSq( carS.GetRefillPointPosWS(), player.GetPosition() );
68 if ( dist < carS.GetActionDistanceFuel() * carS.GetActionDistanceFuel() )