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

◆ OnEngineStart()

override void Car::OnEngineStart ( )
inlineprotected

Gets called everytime the engine starts.

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

1903 {
1904 ItemBase battery = GetBattery();
1905 if (GetGame().IsServer() && battery)
1906 {
1907 float batteryConsume = GetBatteryConsumption();
1908 battery.GetCompEM().ConsumeEnergy(batteryConsume);
1909
1910 UpdateBattery(battery);
1911 }
1912
1913 UpdateLights();
1914
1915 HandleEngineSound(CarEngineSoundState.START_OK);
1916 }
class GP5GasMask extends MaskBase ItemBase
ItemBase GetBattery()
Определения CarScript.c:2872
void UpdateBattery(ItemBase battery)
Определения CarScript.c:2886
void HandleEngineSound(CarEngineSoundState state)
Определения CarScript.c:1660
float GetBatteryConsumption()
Определения CarScript.c:2857
void UpdateLights(int new_gear=-1)
Определения CarScript.c:1953
proto native CGame GetGame()

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