6 [
Attribute(defvalue:
"0.05", uiwidget: UIWidgets.Auto,
desc:
"Minimum throttle to pass this conditon")]
7 protected float m_fMinimumThrottle;
19 CarControllerComponent controller = CarControllerComponent.Cast(
data.GetCurrentVehicleController());
23 VehicleWheeledSimulation simulation = VehicleWheeledSimulation.Cast(controller.GetSimulation());
27 bool result = simulation.GetThrottle() >= m_fMinimumThrottle;
29 return GetReturnResult(result);
33 CarControllerComponent_SA controller = CarControllerComponent_SA.Cast(
data.GetCurrentVehicleController());
37 VehicleWheeledSimulation_SA simulation = VehicleWheeledSimulation_SA.Cast(controller.GetSimulation());
41 bool result = simulation.GetThrottle() >= m_fMinimumThrottle;
43 return GetReturnResult(result);