DayZ 1.30
DayZ Explorer by KGB
 
Загрузка...
Поиск...
Не найдено

◆ OnEngineStart()

override void OnEngineStart ( )
protected

Gets called everytime the engine starts.

TODO@RR - battery

См. определение в файле MotorbikeScript.c строка 1003

1004 {
1006 {
1008 if (g_Game.IsServer() && battery)
1009 {
1011 /*
1012 float batteryConsume = GetBatteryConsumption();
1013 battery.GetCompEM().ConsumeEnergy(batteryConsume);
1014
1015 UpdateBattery(battery);
1016 */
1017 }
1018 }
1019
1021 UpdateLights();
1022
1024 }
DayZGame g_Game
Определения DayZGame.c:4074
override void UpdateLights(int new_gear=-1)
Определения MotorbikeScript.c:1080
void HandleEngineSound(MotorbikeEngineSoundState state)
Определения MotorbikeScript.c:1461
MotorbikeEngineSoundState
Определения MotorbikeScript.c:43
void UpdateHeadlightState()
Определения MotorbikeScript.c:1049
override EntityAI GetElectricitySourceDevice()
override bool NeedElectricitySourceDevice()

Перекрестные ссылки g_Game, GetElectricitySourceDevice(), HandleEngineSound(), NeedElectricitySourceDevice(), UpdateHeadlightState() и UpdateLights().