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_ScenarioFrameworkActionPlayMusic.c
Go to the documentation of this file.
1
[
BaseContainerProps
(),
SCR_ContainerActionTitle
()]
2
class
SCR_ScenarioFrameworkActionPlayMusic
:
SCR_ScenarioFrameworkActionBase
3
{
4
[
Attribute
(
desc
:
"Music to play. Music manager has to be present in the world and music needs to be configured in acp file there."
)]
5
string
m_sMusic;
6
7
//------------------------------------------------------------------------------------------------
8
override
void
OnActivate
(
IEntity
object
)
9
{
10
if
(!CanActivate())
11
return
;
12
13
ChimeraWorld
world =
GetGame
().GetWorld();
14
if
(!world)
15
return
;
16
17
MusicManager musicManager = world.GetMusicManager();
18
if
(!musicManager)
19
return
;
20
21
musicManager.Play(m_sMusic);
22
}
23
}
GetGame
ArmaReforgerScripted GetGame()
Definition
game.c:1398
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
ChimeraWorld
Definition
ChimeraWorld.c:13
IEntity
Definition
IEntity.c:13
SCR_ContainerActionTitle
Definition
SCR_ContainerActionTitle.c:2
SCR_ScenarioFrameworkActionBase
Definition
SCR_ScenarioFrameworkActionBase.c:3
SCR_ScenarioFrameworkActionPlayMusic
Definition
SCR_ScenarioFrameworkActionPlayMusic.c:3
Attribute
SCR_FieldOfViewSettings Attribute
Definition
SendGoalMessage.c:170
scripts
Game
ScenarioFramework
Actions
SCR_ScenarioFrameworkActionPlayMusic.c
Generated by
1.17.0