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

◆ OnSound()

override float Car::OnSound ( CarSoundCtrl ctrl,
float oldValue )
inlineprotected

Gets called every sound simulation step. In this callback, user can modify behaviour of sound controllers The higher the return value is the more muted sound is.

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

1434 {
1435 switch (ctrl)
1436 {
1437 case CarSoundCtrl.ENGINE:
1438 if (!m_EngineStarted)
1439 {
1440 return 0.0;
1441 }
1442 break;
1443 }
1444
1445 return oldValue;
1446 }
CarSoundCtrl
Car's sound controller list. (native, do not change or extend)
Определения Car.c:4