Arma Reforger Explorer 1.7.0.54
Arma Reforger Code Explorer by Zeroy - Thanks to MisterOutofTime
Loading...
Searching...
No Matches
SCR_SoundDataComponent.c
Go to the documentation of this file.
1[EntityEditorProps(category: "GameScripted/Sound", description: "")]
3{
4 [Attribute("", UIWidgets.Auto, desc: "Audio Source Configuration)")]
5 ref array<ref SCR_AudioSourceConfiguration> m_aAudioSourceConfiguration;
6}
7
8class SCR_SoundDataComponent : ScriptComponent
9{
10 //------------------------------------------------------------------------------------------------
13 SCR_AudioSourceConfiguration GetAudioSourceConfiguration(string eventName)
14 {
16 if (!prefabData)
17 return null;
18
19 foreach (SCR_AudioSourceConfiguration audioSourceConfiguration : prefabData.m_aAudioSourceConfiguration)
20 {
21 if (audioSourceConfiguration.m_sSoundEventName == eventName)
22 {
23 if (audioSourceConfiguration.m_sSoundProject != string.Empty)
24 {
25 return audioSourceConfiguration;
26 }
27 else
28 {
29 return null;
30 }
31 }
32 }
33
34 return null;
35 }
36}
SCR_CharacterSoundComponentClass GetComponentData()
enum SCR_ECompassType EntityEditorProps(category:"GameScripted/Gadgets", description:"Compass", color:"0 0 255 255")
Prefab data class for compass component.
SCR_AudioSourceConfiguration GetAudioSourceConfiguration()
UI Textures DeployMenu Briefing conflict_HintBanner_1_UI desc
proto external GenericEntity GetOwner()
Get owner entity.
SCR_FieldOfViewSettings Attribute