3 protected CarControllerComponent m_pCarController;
4 protected CarControllerComponent_SA m_pCarController_SA;
12 if (!m_pCarController)
16 m_bIsBlinking =
false;
17 if (m_pCarController.GetHandBrake() || m_pCarController.GetPersistentHandBrake())
19 VehicleWheeledSimulation simulation = m_pCarController.GetSimulation();
20 if (m_pCarController.IsEngineOn() && simulation && simulation.GetSpeedKmh() > 1)
30 if (!m_pCarController_SA)
34 m_bIsBlinking =
false;
35 if (m_pCarController_SA.GetHandBrake() || m_pCarController_SA.GetPersistentHandBrake())
37 VehicleWheeledSimulation_SA simulation = m_pCarController_SA.GetSimulation();
38 if (m_pCarController_SA.IsEngineOn() && simulation && simulation.GetSpeedKmh() > 1)
50 override void DisplayInit(IEntity owner)
52 super.DisplayInit(owner);
55 m_pCarController = CarControllerComponent.Cast(owner.FindComponent(CarControllerComponent));
57 m_pCarController_SA = CarControllerComponent_SA.Cast(owner.FindComponent(CarControllerComponent_SA));