Arma Reforger Explorer 1.7.0.54
Arma Reforger Code Explorer by Zeroy - Thanks to MisterOutofTime
Loading...
Searching...
No Matches
SCR_LongRangeSoundSystem.c
Go to the documentation of this file.
2{
3 override protected void SoundEventTriggered(vector position, ResourceName soundProject, string soundEventName)
4 {
5 SCR_SoundManagerModule soundManager = SCR_SoundManagerModule.GetInstance(GetWorld());
6 if (!soundManager)
7 return;
8
9 SCR_AudioSourceConfiguration sourceConfig = new SCR_AudioSourceConfiguration();
10 sourceConfig.m_sSoundProject = soundProject;
11 sourceConfig.m_sSoundEventName = soundEventName;
12 sourceConfig.m_eFlags |= EAudioSourceConfigurationFlag.FinishWhenEntityDestroyed | EAudioSourceConfigurationFlag.Static | EAudioSourceConfigurationFlag.EnvironmentSignals;
13
14 if (!sourceConfig.IsValid())
15 return;
16
17 SCR_AudioSource audioSource = soundManager.CreateAudioSource(sourceConfig, position);
18
19 if (!audioSource)
20 return;
21
22 soundManager.PlayAudioSource(audioSource);
23 }
24}
void SCR_AudioSource(SCR_AudioSourceConfiguration audioSourceConfiguration, vector mat[4])
vector position
void SoundEventTriggered(vector position, ResourceName soundProject, string soundEventName)