Arma Reforger Explorer 1.7.0.54
Arma Reforger Code Explorer by Zeroy - Thanks to MisterOutofTime
Loading...
Searching...
No Matches
SCR_ScenarioFrameworkDebugArea.c
Go to the documentation of this file.
3{
4 [Attribute(desc: "Name of the Area which will be selected to spawn. Careful as it is case-sensitive!", category: "Debug")];
5 string m_sForcedArea;
6
7 [Attribute(desc: "Name of the Layer Task that will get spawned under attached Area. Careful as it is case-sensitive! If left empty, Layer Task will be randomly selected", category: "Debug")];
8 string m_sForcedLayerTask;
9
10 [Attribute(desc: "Name of the Slot Task that will get spawned under attached Area and Layer Task. Careful as it is case-sensitive! If left empty, Slot Task will be randomly selected", category: "Debug")];
11 string m_sForcedSlotTask;
12
13 //------------------------------------------------------------------------------------------------
15 SCR_ScenarioFrameworkArea GetForcedArea()
16 {
17 if (SCR_StringHelper.IsEmptyOrWhiteSpace(m_sForcedArea))
18 return null;
19
20 IEntity entity = GetGame().GetWorld().FindEntityByName(m_sForcedArea);
21 if (!entity)
22 return null;
23
25 }
26
27 //------------------------------------------------------------------------------------------------
29 SCR_ScenarioFrameworkLayerTask GetForcedLayerTask()
30 {
31 if (SCR_StringHelper.IsEmptyOrWhiteSpace(m_sForcedLayerTask))
32 return null;
33
34 IEntity entity = GetGame().GetWorld().FindEntityByName(m_sForcedLayerTask);
35 if (!entity)
36 return null;
37
38 return SCR_ScenarioFrameworkLayerTask.Cast(entity.FindComponent(SCR_ScenarioFrameworkLayerTask));
39 }
40
41 //------------------------------------------------------------------------------------------------
43 SCR_ScenarioFrameworkSlotTask GetForcedSlotTask()
44 {
45 if (SCR_StringHelper.IsEmptyOrWhiteSpace(m_sForcedSlotTask))
46 return null;
47
48 IEntity entity = GetGame().GetWorld().FindEntityByName(m_sForcedSlotTask);
49 if (!entity)
50 return null;
51
52 return SCR_ScenarioFrameworkSlotTask.Cast(entity.FindComponent(SCR_ScenarioFrameworkSlotTask));
53 }
54
55 //------------------------------------------------------------------------------------------------
57 string GetWholeInfo()
58 {
59 return string.Format("%1 - %2 - %3", m_sForcedArea, m_sForcedLayerTask, m_sForcedSlotTask);
60 }
61}
ArmaReforgerScripted GetGame()
Definition game.c:1398
SCR_AIAnimation_Loitering BaseContainerProps
Commanding menu commanding element class.
UI Textures DeployMenu Briefing conflict_HintBanner_1_UI desc
proto external Managed FindComponent(typename typeName)
proto external BaseWorld GetWorld()
static bool IsEmptyOrWhiteSpace(string input)
SCR_FieldOfViewSettings Attribute