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

◆ OnEngineStop()

override void Car::OnEngineStop ( )
inlineprotected

Gets called everytime the engine stops.

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

1920 {
1921 ItemBase battery = GetBattery();
1922 if (GetGame().IsServer() && battery)
1923 {
1924 UpdateBattery(battery);
1925 }
1926
1927 UpdateLights();
1928
1929 CarEngineSoundState stopSoundState = CarEngineSoundState.STOP_OK;
1930 if (GetFluidFraction(CarFluid.FUEL) <= 0)
1931 stopSoundState = CarEngineSoundState.STOP_NO_FUEL;
1932
1933 HandleEngineSound(stopSoundState);
1934
1935 SetEngineZoneReceivedHit(false);
1936 }
CarFluid
Type of vehicle's fluid. (native, do not change or extend)
Определения Car.c:19
class GP5GasMask extends MaskBase ItemBase
ItemBase GetBattery()
Определения CarScript.c:2872
void UpdateBattery(ItemBase battery)
Определения CarScript.c:2886
void HandleEngineSound(CarEngineSoundState state)
Определения CarScript.c:1660
void UpdateLights(int new_gear=-1)
Определения CarScript.c:1953
proto native CGame GetGame()

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