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

◆ OnEngineStart()

override void OnEngineStart ( )
protected

Gets called everytime the engine starts.

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

1798 {
1799 ItemBase battery = GetBattery();
1800 if (GetGame().IsServer() && battery)
1801 {
1802 battery.GetCompEM().ConsumeEnergy(GetBatteryConsumption());
1803 }
1804
1805 UpdateLights();
1806
1807 HandleEngineSound(CarEngineSoundState.START_OK);
1808 }
ItemBase GetBattery()
Определения CarScript.c:2727
float GetBatteryConsumption()
Определения CarScript.c:2712
void UpdateLights(int new_gear=-1)
Определения CarScript.c:1842
void HandleEngineSound(CarEngineSoundState state)
Определения CarScript.c:1564
Определения InventoryItem.c:731
proto native CGame GetGame()

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