3 protected CarControllerComponent m_pCarController;
4 protected CarControllerComponent_SA m_pCarController_SA;
14 if (!m_pCarController || m_pCarController.GetCurrentGear() == 1)
20 VehicleWheeledSimulation simulation = m_pCarController.GetSimulation();
21 if (simulation && simulation.GetSpeedKmh() > 1)
28 if (!m_pCarController_SA || m_pCarController_SA.GetCurrentGear() == 1)
34 VehicleWheeledSimulation_SA simulation = m_pCarController_SA.GetSimulation();
35 if (simulation && simulation.GetSpeedKmh() > 1)
45 override void DisplayInit(IEntity owner)
47 super.DisplayInit(owner);
50 m_pCarController = CarControllerComponent.Cast(owner.FindComponent(CarControllerComponent));
52 m_pCarController_SA = CarControllerComponent_SA.Cast(owner.FindComponent(CarControllerComponent_SA));