3 protected CarControllerComponent m_pCarController;
4 protected CarControllerComponent_SA m_pCarController_SA;
14 if (!m_pCarController)
17 if (m_pCarController.GetEngineDrowned())
20 VehicleWheeledSimulation simulation = m_pCarController.GetSimulation();
21 if (state ==
EVehicleInfoState.ERROR && simulation && simulation.GetThrottle() > 0.1)
28 if (!m_pCarController_SA)
31 if (m_pCarController_SA.GetEngineDrowned())
34 VehicleWheeledSimulation_SA simulation = m_pCarController_SA.GetSimulation();
35 if (state ==
EVehicleInfoState.ERROR && simulation && simulation.GetThrottle() > 0.1)
44 override void DisplayInit(IEntity owner)
46 super.DisplayInit(owner);
49 m_pCarController = CarControllerComponent.Cast(owner.FindComponent(CarControllerComponent));
51 m_pCarController_SA = CarControllerComponent_SA.Cast(owner.FindComponent(CarControllerComponent_SA));