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_GlobalVariableCinematicTrack.c
Go to the documentation of this file.
1
[
CinematicTrackAttribute
(name:
"Global Variable Track"
, description:
"Track used for setting sound global variable"
)]
2
class
SCR_GlobalVariableTrack
:
CinematicTrackBase
3
{
4
[
Attribute
(
""
)]
5
string
m_sGlobalVariableName;
6
7
[
Attribute
(
"0.0"
)]
8
float
m_fValue;
9
10
protected
float
m_fValueLast
;
11
12
override
void
OnInit
(
World
world)
13
{
14
super.OnInit(world);
15
}
16
17
override
void
OnApply
(
float
time)
18
{
19
if
(m_sGlobalVariableName.IsEmpty())
20
{
21
return
;
22
}
23
24
if
(
float
.AlmostEqual(m_fValue,
m_fValueLast
, 0.001))
25
{
26
return
;
27
}
28
29
AudioSystem
.SetVariableByName(m_sGlobalVariableName, m_fValue,
"{A60F08955792B575}Sounds/_SharedData/Variables/GlobalVariables.conf"
);
30
31
m_fValueLast
= m_fValue;
32
}
33
}
AudioSystem
Definition
AudioSystem.c:13
CinematicTrackAttribute
Definition
attributes.c:3
CinematicTrackBase
Definition
CinematicTrackBase.c:8
SCR_GlobalVariableTrack
Definition
SCR_GlobalVariableCinematicTrack.c:3
SCR_GlobalVariableTrack::m_fValueLast
float m_fValueLast
Definition
SCR_GlobalVariableCinematicTrack.c:10
SCR_GlobalVariableTrack::OnApply
override void OnApply(float time)
Definition
SCR_GlobalVariableCinematicTrack.c:17
SCR_GlobalVariableTrack::OnInit
override void OnInit(World world)
Definition
SCR_GlobalVariableCinematicTrack.c:12
World
Definition
World.c:16
Attribute
SCR_FieldOfViewSettings Attribute
Definition
SendGoalMessage.c:170
scripts
Game
Cinematics
SCR_GlobalVariableCinematicTrack.c
Generated by
1.17.0