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

◆ PlaySoundSet()

bool IEntity::PlaySoundSet ( out EffectSound sound,
string sound_set,
float fade_in,
float fade_out,
bool loop = false )
inlineprivate

EffectSound - plays soundset on this object and returns state of the sound (true - played, false - not played)

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

1248 {
1249 if ( g_Game && !g_Game.IsDedicatedServer() )
1250 {
1251 if ( sound )
1252 {
1253 if ( loop )
1254 {
1255 return true;
1256 }
1257 else
1258 {
1259 StopSoundSet( sound ); //auto stop for non-looped sounds
1260 }
1261 }
1262
1263 sound = SEffectManager.PlaySoundOnObject( sound_set, this, fade_in, fade_out, loop );
1264 sound.SetAutodestroy( true );
1265
1266 return true;
1267 }
1268
1269 return false;
1270 }
DayZGame g_Game
Определения DayZGame.c:4074
bool StopSoundSet(out EffectSound sound)
EffectSound - stops soundset and returns state of the sound (true - stopped, false - not playing)
Определения Object.c:1314

Перекрестные ссылки g_Game, SEffectManager::PlaySoundOnObject(), EffectSound::SetAutodestroy() и StopSoundSet().

Используется в PlaySoundSetLoop().