6 [
Attribute(defvalue:
"0.05", uiwidget: UIWidgets.Auto,
desc:
"Minimum braking to pass this conditon")]
7 protected float m_fMinimumBrake;
18 CarControllerComponent controller = CarControllerComponent.Cast(
data.GetCurrentVehicleController());
22 VehicleWheeledSimulation simulation = VehicleWheeledSimulation.Cast(controller.GetSimulation());
26 bool result = simulation.GetBrake() >= m_fMinimumBrake;
28 return GetReturnResult(result);
32 CarControllerComponent_SA controller = CarControllerComponent_SA.Cast(
data.GetCurrentVehicleController());
36 VehicleWheeledSimulation_SA simulation = VehicleWheeledSimulation_SA.Cast(controller.GetSimulation());
40 bool result = simulation.GetBrake() >= m_fMinimumBrake;
42 return GetReturnResult(result);