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

◆ PlayActionSound()

SoundOnVehicle ActionBase::PlayActionSound ( PlayerBase player)
inlineprotected

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

1197 {
1198 if ( GetGame().IsServer() && player )
1199 {
1200 if ( m_Sound != "" )
1201 {
1202 return GetGame().CreateSoundOnObject(player, m_Sound, 6, false);
1203 }
1204 else if ( m_Sounds && m_Sounds.Count() > 0 )
1205 {
1206 int rand_num = Math.RandomInt(0, m_Sounds.Count());
1207 return GetGame().CreateSoundOnObject(player, m_Sounds.Get(rand_num), 6, false);
1208 }
1209 }
1210
1211 return NULL;
1212 }
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().