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

◆ PlayActionSound()

SoundOnVehicle ActionBase::PlayActionSound ( PlayerBase player)
inlineprotected

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

1236 {
1237 if ( GetGame().IsServer() && player )
1238 {
1239 if ( m_Sound != "" )
1240 {
1241 return GetGame().CreateSoundOnObject(player, m_Sound, 6, false);
1242 }
1243 else if ( m_Sounds && m_Sounds.Count() > 0 )
1244 {
1245 int rand_num = Math.RandomInt(0, m_Sounds.Count());
1246 return GetGame().CreateSoundOnObject(player, m_Sounds.Get(rand_num), 6, false);
1247 }
1248 }
1249
1250 return NULL;
1251 }
string m_Sound
Определения ActionBase.c:57
ref TStringArray m_Sounds
Определения ActionBase.c:63
proto native SoundOnVehicle CreateSoundOnObject(Object source, string sound_name, float distance, bool looped, bool create_local=false)
proto native CGame GetGame()

Перекрестные ссылки CGame::CreateSoundOnObject(), GetGame(), m_Sound, m_Sounds и Math::RandomInt().