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

◆ PlayActionSound()

SoundOnVehicle PlayActionSound ( PlayerBase player)
protected

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

1325 {
1326 if ( g_Game.IsServer() && player )
1327 {
1328 if ( m_Sound != "" )
1329 {
1330 return g_Game.CreateSoundOnObject(player, m_Sound, 6, false);
1331 }
1332 else if ( m_Sounds && m_Sounds.Count() > 0 )
1333 {
1334 int rand_num = Math.RandomInt(0, m_Sounds.Count());
1335 return g_Game.CreateSoundOnObject(player, m_Sounds.Get(rand_num), 6, false);
1336 }
1337 }
1338
1339 return NULL;
1340 }
ref TStringArray m_Sounds
Определения ActionBase.c:62
DayZGame g_Game
Определения DayZGame.c:4074
EffectSound m_Sound
Определения HungerSoundHandler.c:18
Определения EnMath.c:7
static proto int RandomInt(int min, int max)
Returns a random int number between and min [inclusive] and max [exclusive].

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