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_ScenarioFrameworkActionPlaySound.c
Go to the documentation of this file.
1
[
BaseContainerProps
(),
SCR_ContainerActionTitle
()]
2
class
SCR_ScenarioFrameworkActionPlaySound
:
SCR_ScenarioFrameworkActionBase
3
{
4
[
Attribute
(
desc
:
"Sound to play."
)]
5
string
m_sSound;
6
7
//------------------------------------------------------------------------------------------------
8
override
void
OnActivate
(
IEntity
object
)
9
{
10
if
(!CanActivate())
11
return
;
12
13
SCR_ScenarioFrameworkSystem
scenarioFrameworkSystem =
SCR_ScenarioFrameworkSystem
.
GetInstance
();
14
if
(!scenarioFrameworkSystem)
15
return
;
16
17
//After activation of this action, we want to play it with slight delay
18
SCR_ScenarioFrameworkCallQueueSystem
.
GetCallQueueNonPausable
().CallLater(scenarioFrameworkSystem.
PlaySoundOnEntity
, 2000,
false
, null, m_sSound);
19
}
20
}
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_ScenarioFrameworkActionPlaySound
Definition
SCR_ScenarioFrameworkActionPlaySound.c:3
SCR_ScenarioFrameworkCallQueueSystem
Definition
SCR_ScenarioFrameworkCallQueueSystem.c:2
SCR_ScenarioFrameworkCallQueueSystem::GetCallQueueNonPausable
static ScriptCallQueue GetCallQueueNonPausable()
Definition
SCR_ScenarioFrameworkCallQueueSystem.c:28
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_ScenarioFrameworkActionPlaySound.c
Generated by
1.17.0