Arma Reforger Explorer 1.7.0.54
Arma Reforger Code Explorer by Zeroy - Thanks to MisterOutofTime
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")]
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}
Definition World.c:16
SCR_FieldOfViewSettings Attribute