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

◆ PlaySoundEx()

void PlaySoundEx ( string soundset,
EffectSound sound,
out bool soundbool )
protected

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

2353 {
2354 #ifndef SERVER
2355 if (!sound)
2356 {
2358 if( sound )
2359 {
2360 sound.SetAutodestroy(true);
2361 }
2362 }
2363 else
2364 {
2365 if (!sound.IsSoundPlaying())
2366 {
2367 sound.SetPosition(GetPosition());
2368 sound.SoundPlay();
2369 }
2370 }
2371
2372 soundbool = false;
2373 #endif
2374 }
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
static EffectSound PlaySoundCachedParams(string sound_set, vector position, float play_fade_in=0, float stop_fade_out=0, bool loop=false)
Create and play an EffectSound, using or creating cached SoundParams.
Определения EffectManager.c:207
Manager class for managing Effect (EffectParticle, EffectSound)
Определения EffectManager.c:6
class JsonUndergroundAreaTriggerData GetPosition
Определения UndergroundAreaLoader.c:9

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

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