23 {
25
26 Car car = Car.Cast(action_data.m_Target.GetObject());
27
28 if ( !car )
29 return;
30
33
35 {
37 }
38 else
39 {
41 }
42
43 float oilCapacity = car.GetFluidCapacity(
CarFluid.OIL );
44 float currentOil = car.GetFluidFraction(
CarFluid.OIL );
45 currentOil = currentOil * oilCapacity;
46
49
52
53 }
CarFluid
Type of vehicle's fluid. (native, do not change or extend)
ref Param1< float > m_SpentUnits