Arma Reforger Explorer  1.1.0.42
Arma Reforger Code Explorer by Zeroy - Thanks to MisterOutofTime
SCR_SoundDataComponent.c
Go to the documentation of this file.
1 [EntityEditorProps(category: "GameScripted/Sound", description: "")]
2 class SCR_SoundDataComponentClass : ScriptComponentClass
3 {
4  [Attribute("", UIWidgets.Auto, desc: "Audio Source Configuration)")]
5  ref array<ref SCR_AudioSourceConfiguration> m_aAudioSourceConfiguration;
6 }
7 
8 class SCR_SoundDataComponent : ScriptComponent
9 {
10  //------------------------------------------------------------------------------------------------
13  SCR_AudioSourceConfiguration GetAudioSourceConfiguration(string eventName)
14  {
15  SCR_SoundDataComponentClass prefabData = SCR_SoundDataComponentClass.Cast(GetComponentData(GetOwner()));
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)
24  return audioSourceConfiguration;
25  else
26  return null;
27  }
28  }
29  return null;
30  }
31 }
EntityEditorProps
enum EQueryType EntityEditorProps(category:"GameScripted/Sound", description:"THIS IS THE SCRIPT DESCRIPTION.", color:"0 0 255 255")
Definition: SCR_AmbientSoundsComponent.c:12
ScriptComponent
SCR_SiteSlotEntityClass ScriptComponent
GetAudioSourceConfiguration
SCR_SoundDataComponentClass ScriptComponentClass GetAudioSourceConfiguration(string eventName)
Definition: SCR_SoundDataComponent.c:13
desc
UI Textures DeployMenu Briefing conflict_HintBanner_1_UI desc
Definition: SCR_RespawnBriefingComponent.c:17
SCR_SoundDataComponentClass
Definition: SCR_SoundDataComponent.c:2
Attribute
typedef Attribute
Post-process effect of scripted camera.
GetOwner
IEntity GetOwner()
Owner entity of the fuel tank.
Definition: SCR_FuelNode.c:128
category
params category
Definition: SCR_VehicleDamageManagerComponent.c:180