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

◆ PlaySoundEffect()

void DustKickupEffects::PlaySoundEffect ( DustKickupParams params)
inlineprivate

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

194 {
195 EffectSound dustKickupSound = SEffectManager.CreateSound(m_DustKickupSoundSetName, params.position);
196
197 if (!dustKickupSound)
198 {
199 string errorMsgSound = "Soundset is invalid, please check the value of m_DustKickupSoundSetName, as well as the config to see if the soundset is correct";
200 ErrorEx(string.Format("%1: SoundSetName: '%2' :: %3", this, m_DustKickupSoundSetName, errorMsgSound));
201 }
202
203 params.object.PlaySoundSet(dustKickupSound, m_DustKickupSoundSetName, 0.0, 0.0); //the two zeros are fade in/out values, will leave them as is and add constants in the future if needed
204 dustKickupSound.SetPosition(params.position);
205 dustKickupSound.SetAutodestroy(true);
206 }
string m_DustKickupSoundSetName
Определения DustKickupEffects.c:45
Object object
Определения DustKickupEffects.c:4
vector position
Определения DustKickupEffects.c:6
override void SetAutodestroy(bool auto_destroy)
Sets whether Effect automatically cleans up when it stops.
Определения EffectSound.c:607
enum ShapeType ErrorEx

Перекрестные ссылки SEffectManager::CreateSound(), ErrorEx, m_DustKickupSoundSetName, DustKickupParams::object, DustKickupParams::position и EffectSound::SetAutodestroy().

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