Arma Reforger Explorer
1.7.0.54
Arma Reforger Code Explorer by Zeroy - Thanks to MisterOutofTime
Toggle main menu visibility
Loading...
Searching...
No Matches
EnableCinematicTrack.c
Go to the documentation of this file.
1
[
CinematicTrackAttribute
(name:
"Enable Track"
, description:
"Track used for enabling/disabling entities"
)]
2
class
EnableCinematicTrack
:
CinematicTrackBase
3
{
4
5
[
Attribute
(
"true"
)]
6
bool
m_bEnable;
7
8
private
GenericEntity
m_GeneralEntity;
9
private
World
globalWorld;
10
11
override
void
OnInit
(
World
world)
12
{
13
// Find particle entity by using name of track
14
findEntity(world);
15
globalWorld = world;
16
}
17
18
void
findEntity(
World
world)
19
{
20
// Find particle entity by using name of track
21
TStringArray
strs =
new
TStringArray
;
22
GetTrackName().Split(
"_"
, strs,
true
);
23
24
m_GeneralEntity =
GenericEntity
.Cast(world.FindEntityByName(strs.Get(0)));
25
}
26
27
override
void
OnApply(
float
time)
28
{
29
30
if
(globalWorld)
31
{
32
findEntity(globalWorld);
33
}
34
35
if
(m_GeneralEntity)
36
{
37
38
if
(m_bEnable)
39
{
40
m_GeneralEntity.Show(
true
);
41
m_GeneralEntity.Update();
42
}
43
else
44
{
45
m_GeneralEntity.Show(
false
);
46
m_GeneralEntity.Update();
47
}
48
}
49
}
50
}
CinematicTrackAttribute
Definition
attributes.c:3
CinematicTrackBase
Definition
CinematicTrackBase.c:8
EnableCinematicTrack
Definition
EnableCinematicTrack.c:3
GenericEntity
Definition
GenericEntity.c:16
World
Definition
World.c:16
Attribute
SCR_FieldOfViewSettings Attribute
Definition
SendGoalMessage.c:170
OnInit
@ OnInit
Definition
SndComponentCallbacks.c:17
TStringArray
array< string > TStringArray
Definition
Types.c:385
scripts
Game
Cinematics
EnableCinematicTrack.c
Generated by
1.17.0