Arma Reforger Explorer
1.7.0.54
Arma Reforger Code Explorer by Zeroy - Thanks to MisterOutofTime
Toggle main menu visibility
Loading...
Searching...
No Matches
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 !=
string
.Empty)
24
{
25
return
audioSourceConfiguration;
26
}
27
else
28
{
29
return
null;
30
}
31
}
32
}
33
34
return
null;
35
}
36
}
GetComponentData
SCR_CharacterSoundComponentClass GetComponentData()
Definition
SCR_CharacterSoundComponent.c:132
EntityEditorProps
enum SCR_ECompassType EntityEditorProps(category:"GameScripted/Gadgets", description:"Compass", color:"0 0 255 255")
Prefab data class for compass component.
Definition
SCR_CompassComponent.c:10
GetAudioSourceConfiguration
SCR_AudioSourceConfiguration GetAudioSourceConfiguration()
Definition
SCR_RepeatingParticleEffectEntity.c:57
desc
UI Textures DeployMenu Briefing conflict_HintBanner_1_UI desc
Definition
SCR_RespawnBriefingComponent.c:17
category
params category
Definition
SCR_VehicleDamageManagerComponent.c:302
SCR_SoundDataComponentClass
Definition
SCR_SoundDataComponent.c:3
ScriptComponentClass
Definition
ScriptComponentClass.c:8
ScriptComponent
Definition
ScriptComponent.c:24
ScriptComponent::GetOwner
proto external GenericEntity GetOwner()
Get owner entity.
UIWidgets
Definition
attributes.c:40
Attribute
SCR_FieldOfViewSettings Attribute
Definition
SendGoalMessage.c:170
scripts
Game
Components
SCR_SoundDataComponent.c
Generated by
1.17.0