Arma Reforger Explorer 1.7.0.54
Arma Reforger Code Explorer by Zeroy - Thanks to MisterOutofTime
Loading...
Searching...
No Matches
SCR_ScenarioFrameworkActionPlayMusic.c
Go to the documentation of this file.
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}
ArmaReforgerScripted GetGame()
Definition game.c:1398
SCR_AIAnimation_Loitering BaseContainerProps
Commanding menu commanding element class.
override void OnActivate()
UI Textures DeployMenu Briefing conflict_HintBanner_1_UI desc
SCR_FieldOfViewSettings Attribute