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_MusicCinematicTrack.c
Go to the documentation of this file.
1
[
CinematicTrackAttribute
(name:
"Music Track"
, description:
"Track used for triggering music"
)]
2
class
SCR_MusicCinematicTrack
:
CinematicTrackBase
3
{
4
[
Attribute
(
""
)]
5
string
m_sMusicEvent;
6
7
[
CinematicEventAttribute
()]
8
void
Play
()
9
{
10
ChimeraWorld
chimeraWorld =
GetGame
().GetWorld();
11
12
if
(!chimeraWorld)
13
{
14
return
;
15
}
16
17
MusicManager musicManager = chimeraWorld.GetMusicManager();
18
19
if
(!musicManager)
20
{
21
return
;
22
}
23
24
musicManager.Play(m_sMusicEvent);
25
}
26
27
[
CinematicEventAttribute
()]
28
void
Stop
()
29
{
30
ChimeraWorld
chimeraWorld =
GetGame
().GetWorld();
31
32
if
(!chimeraWorld)
33
{
34
return
;
35
}
36
37
MusicManager musicManager = chimeraWorld.GetMusicManager();
38
39
if
(!musicManager)
40
{
41
return
;
42
}
43
44
musicManager.Stop(m_sMusicEvent);
45
}
46
}
GetGame
ArmaReforgerScripted GetGame()
Definition
game.c:1398
CinematicEventAttribute
void CinematicEventAttribute(string name="")
Definition
attributes.c:18
ChimeraWorld
Definition
ChimeraWorld.c:13
CinematicTrackAttribute
Definition
attributes.c:3
CinematicTrackBase
Definition
CinematicTrackBase.c:8
SCR_MusicCinematicTrack
Definition
SCR_MusicCinematicTrack.c:3
Stop
void Stop()
Stop tracking time in this menu, prepare for sending data.
Definition
SCR_AnalyticsDelayedSend.c:30
Play
bool Play()
Start playing the animation. Call 'Prepare' first if you need to change the setup of a component!
Definition
SCR_AudioSource.c:85
Attribute
SCR_FieldOfViewSettings Attribute
Definition
SendGoalMessage.c:170
scripts
Game
Cinematics
SCR_MusicCinematicTrack.c
Generated by
1.17.0