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

◆ PlaySoundEx()

void Car::PlaySoundEx ( string soundset,
EffectSound sound,
out bool soundbool )
inlineprotected

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

2618 {
2619 #ifndef SERVER
2620 if (!sound)
2621 {
2622 sound = SEffectManager.PlaySoundCachedParams(soundset, GetPosition());
2623 if( sound )
2624 {
2625 sound.SetAutodestroy(true);
2626 }
2627 }
2628 else
2629 {
2630 if (!sound.IsSoundPlaying())
2631 {
2632 sound.SetPosition(GetPosition());
2633 sound.SoundPlay();
2634 }
2635 }
2636
2637 soundbool = false;
2638 #endif
2639 }
override void SetAutodestroy(bool auto_destroy)
Sets whether Effect automatically cleans up when it stops.
Определения EffectSound.c:603
bool IsSoundPlaying()
Get whether EffectSound is currently playing.
Определения EffectSound.c:274
bool SoundPlay()
Plays sound.
Определения EffectSound.c:199
vector GetPosition()
Get the world position of the Effect.
Определения Effect.c:473

Перекрестные ссылки GetPosition(), EffectSound::IsSoundPlaying(), SEffectManager::PlaySoundCachedParams(), EffectSound::SetAutodestroy() и EffectSound::SoundPlay().

Используется в EEHealthLevelChanged(), PlayCrashHeavySound(), PlayCrashLightSound() и PlaySound().