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

◆ OnEngineStart()

override void Car::OnEngineStart ( )
inlineprotected

Gets called everytime the engine starts.

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

1806 {
1807 ItemBase battery = GetBattery();
1808 if (g_Game.IsServer() && battery)
1809 {
1810 float batteryConsume = GetBatteryConsumption();
1811 battery.GetCompEM().ConsumeEnergy(batteryConsume);
1812
1813 UpdateBattery(battery);
1814 }
1815
1816 UpdateLights();
1817
1818 HandleEngineSound(CarEngineSoundState.START_OK);
1819 }
DayZGame g_Game
Определения DayZGame.c:4074
class GP5GasMask extends MaskBase ItemBase
ItemBase GetBattery()
Определения CarScript.c:2437
void UpdateBattery(ItemBase battery)
Определения CarScript.c:2442
void HandleEngineSound(CarEngineSoundState state)
Определения CarScript.c:1560
float GetBatteryConsumption()
Определения CarScript.c:2422
override void UpdateLights(int new_gear=-1)
Определения CarScript.c:1853

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