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

◆ OnSound()

override float OnSound ( CarSoundCtrl ctrl,
float oldValue )
protected

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 строка 1482

1483 {
1484 switch (ctrl)
1485 {
1486 case CarSoundCtrl.ENGINE:
1487 if (!m_EngineStarted)
1488 {
1489 return 0.0;
1490 }
1491 break;
1492 }
1493
1494 return oldValue;
1495 }
CarSoundCtrl
Car's sound controller list. (native, do not change or extend)
Определения Car.c:4
bool m_EngineStarted
Определения CarScript.c:240

Перекрестные ссылки m_EngineStarted.