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

◆ OnEngineStart()

override void Car::OnEngineStart ( )
inlineprotected

Gets called everytime the engine starts.

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

2034 {
2035 ItemBase battery = GetBattery();
2036 if (g_Game.IsServer() && battery)
2037 {
2038 float batteryConsume = GetBatteryConsumption();
2039 battery.GetCompEM().ConsumeEnergy(batteryConsume);
2040
2041 UpdateBattery(battery);
2042 }
2043
2044 UpdateLights();
2045
2046 HandleEngineSound(CarEngineSoundState.START_OK);
2047 }
DayZGame g_Game
Определения DayZGame.c:3942
class GP5GasMask extends MaskBase ItemBase
ItemBase GetBattery()
Определения CarScript.c:3015
void UpdateBattery(ItemBase battery)
Определения CarScript.c:3029
void HandleEngineSound(CarEngineSoundState state)
Определения CarScript.c:1790
float GetBatteryConsumption()
Определения CarScript.c:3000
override void UpdateLights(int new_gear=-1)
Определения CarScript.c:2095

Перекрестные ссылки g_Game, GetBattery(), GetBatteryConsumption(), HandleEngineSound(), UpdateBattery() и UpdateLights().