3030 {
3031 if (!battery)
3032 {
3034 return;
3035 }
3036
3037
3039 {
3041 }
3042
3043 bool engineOn = EngineIsOn();
3045
3046 if (engineOn)
3047 {
3048
3050 }
3051 else if (!engineOn && lightsOn)
3052 {
3054 }
3055
3056 if (lightsOn && battery.GetCompEM().GetEnergy() <= 0)
3057 {
3058
3059 if (!engineOn)
3060 {
3062 }
3063 }
3064
3066 }
float GetBatteryRechargeRate()
bool IsScriptedLightsOn()
Proper way to get if light is swiched on.
float GetBatteryRuntimeConsumption()
void ToggleHeadlights()
Switches headlights on/off, including the illumination of the control panel and synchronizes this cha...