Arma Reforger Explorer 1.7.0.54
Arma Reforger Code Explorer by Zeroy - Thanks to MisterOutofTime
Loading...
Searching...
No Matches
TimecodeCinematicTrack.c
Go to the documentation of this file.
1[CinematicTrackAttribute(name:"Timecode Track", description:"Track used for showing timecode")]
3{
4 [Attribute("false")]
5 bool m_bPlay;
6
7 private World globalWorld;
8 private int frame;
9
10 override void OnInit(World world)
11 {
12
13 globalWorld = world;
14 }
15
16 override void OnApply(float time)
17 {
18
19 if (m_bPlay)
20 {
21 frame = Math.Round(time * 60);
22 DebugTextScreenSpace.Create(globalWorld, frame.ToString(), DebugTextFlags.ONCE, 20, 20);
23 }
24 }
25}
Definition Math.c:13
Definition World.c:16
DebugTextFlags
SCR_FieldOfViewSettings Attribute