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

◆ OnSound()

override float OnSound ( MotorbikeSoundCtrl 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.

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

264 {
265 switch (ctrl)
266 {
267 case MotorbikeSoundCtrl.ENGINE:
268 if (!m_EngineStarted)
269 return 0.0;
270
271 break;
272 }
273
274 return oldValue;
275 }
MotorbikeSoundCtrl
Motorbike's sound controller list. (native, do not change or extend)
Определения Motorbike.c:3