2887 {
2888 if (!battery)
2889 {
2891 return;
2892 }
2893
2894
2896 {
2898 }
2899
2900 bool engineOn = EngineIsOn();
2902
2903 if (engineOn)
2904 {
2905
2907 }
2908 else if (!engineOn && lightsOn)
2909 {
2911 }
2912
2913 if (lightsOn && battery.GetCompEM().GetEnergy() <= 0)
2914 {
2915
2916 if (!engineOn)
2917 {
2919 }
2920 }
2921
2923 }
float GetBatteryRechargeRate()
bool IsScriptedLightsOn()
Proper way to get if light is swiched on. Use instead of IsLightsOn().
float GetBatteryRuntimeConsumption()
void ToggleHeadlights()
Switches headlights on/off, including the illumination of the control panel and synchronizes this cha...