Arma Reforger Explorer 1.7.0.54
Arma Reforger Code Explorer by Zeroy - Thanks to MisterOutofTime
Loading...
Searching...
No Matches
SCR_CinematicTrackBase.c
Go to the documentation of this file.
1[CinematicTrackAttribute(name:"", description:"")]
3{
4 protected World m_World;
5
6 override void OnInit(World world)
7 {
8 super.OnInit(world);
9 m_World = world;
10 }
11
13 {
14 if (!m_World)
15 {
16 return null;
17 }
18
19 // Get entity name from track name
20 TStringArray strs = new TStringArray;
21 GetTrackName().Split("_", strs, true);
22
23 return m_World.FindEntityByName(strs.Get(0));
24 }
25
26 IEntity FindOwner(string ownerName)
27 {
28 if (!m_World)
29 {
30 return null;
31 }
32
33 return m_World.FindEntityByName(ownerName);
34 }
35}
IEntity FindOwner(string ownerName)
override void OnInit(World world)
Definition World.c:16
array< string > TStringArray
Definition Types.c:385