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_ScenarioFrameworkActionPlaySoundOnEntity.c
Go to the documentation of this file.
1
[
BaseContainerProps
(),
SCR_ContainerActionTitle
()]
2
class
SCR_ScenarioFrameworkActionPlaySoundOnEntity
:
SCR_ScenarioFrameworkActionBase
3
{
4
[
Attribute
(
desc
:
"Entity to play the sound on (Optional if action is attached on Slot that spawns target entity)"
)]
5
ref
SCR_ScenarioFrameworkGet
m_Getter;
6
7
[
Attribute
(
desc
:
"Sound to play."
)]
8
string
m_sSound;
9
10
//------------------------------------------------------------------------------------------------
11
override
void
OnActivate
(
IEntity
object
)
12
{
13
if
(!CanActivate())
14
return
;
15
16
IEntity
entity;
17
if
(!ValidateInputEntity(
object
, m_Getter, entity))
18
return
;
19
20
SCR_ScenarioFrameworkSystem
scenarioFrameworkSystem =
SCR_ScenarioFrameworkSystem
.
GetInstance
();
21
if
(!scenarioFrameworkSystem)
22
return
;
23
24
SCR_ScenarioFrameworkCallQueueSystem
.
GetCallQueueNonPausable
().CallLater(scenarioFrameworkSystem.
PlaySoundOnEntity
, 2000,
false
, entity, m_sSound);
25
}
26
}
BaseContainerProps
SCR_AIAnimation_Loitering BaseContainerProps
Commanding menu commanding element class.
Definition
SCR_AIAnimationWaypoint.c:14
OnActivate
override void OnActivate()
Definition
SCR_CharacterCommandLoiter.c:31
desc
UI Textures DeployMenu Briefing conflict_HintBanner_1_UI desc
Definition
SCR_RespawnBriefingComponent.c:17
IEntity
Definition
IEntity.c:13
SCR_ContainerActionTitle
Definition
SCR_ContainerActionTitle.c:2
SCR_ScenarioFrameworkActionBase
Definition
SCR_ScenarioFrameworkActionBase.c:3
SCR_ScenarioFrameworkActionPlaySoundOnEntity
Definition
SCR_ScenarioFrameworkActionPlaySoundOnEntity.c:3
SCR_ScenarioFrameworkCallQueueSystem
Definition
SCR_ScenarioFrameworkCallQueueSystem.c:2
SCR_ScenarioFrameworkCallQueueSystem::GetCallQueueNonPausable
static ScriptCallQueue GetCallQueueNonPausable()
Definition
SCR_ScenarioFrameworkCallQueueSystem.c:28
SCR_ScenarioFrameworkGet
Definition
SCR_ScenarioFrameworkGet.c:3
SCR_ScenarioFrameworkSystem
Definition
SCR_ScenarioFrameworkSystem.c:2
SCR_ScenarioFrameworkSystem::GetInstance
static SCR_ScenarioFrameworkSystem GetInstance()
Definition
SCR_ScenarioFrameworkSystem.c:76
SCR_ScenarioFrameworkSystem::PlaySoundOnEntity
void PlaySoundOnEntity(IEntity entity, string sSndName)
Definition
SCR_ScenarioFrameworkSystem.c:179
Attribute
SCR_FieldOfViewSettings Attribute
Definition
SendGoalMessage.c:170
scripts
Game
ScenarioFramework
Actions
SCR_ScenarioFrameworkActionPlaySoundOnEntity.c
Generated by
1.17.0