Arma Reforger Explorer 1.7.0.54
Arma Reforger Code Explorer by Zeroy - Thanks to MisterOutofTime
Loading...
Searching...
No Matches
SCR_ScenarioFrameworkActionChangeLayerTerminationStatus.c
Go to the documentation of this file.
3{
4 [Attribute(desc: "Name of the layer to change the termination status")]
6
7 [Attribute(desc: "If layer will be terminated or not")]
8 bool m_bTerminated;
9
10 //------------------------------------------------------------------------------------------------
11 override void OnActivate(IEntity object)
12 {
13 if (!CanActivate())
14 return;
15
16 if (!m_Getter)
17 {
19 if (layer)
20 layer.SetIsTerminated(m_bTerminated);
21
22 return;
23 }
24
25 SCR_ScenarioFrameworkParam<IEntity> entityWrapper = SCR_ScenarioFrameworkParam<IEntity>.Cast(m_Getter.Get());
26 if (!entityWrapper)
27 {
28 Print(string.Format("ScenarioFramework Action: Getter has issues for action %1. Action won't do anything.", this), LogLevel.ERROR);
29 return;
30 }
31
32 IEntity entity = entityWrapper.GetValue();
33 if (!entity)
34 {
35 Print(string.Format("ScenarioFramework Action: Entity could not be found for action %1. Action won't do anything.", this), LogLevel.ERROR);
36 return;
37 }
38
40 if (!layer)
41 {
42 Print(string.Format("ScenarioFramework Action: Entity is not LayerBase for action %1. Action won't do anything.", this), LogLevel.ERROR);
43 return;
44 }
45
46 layer.SetIsTerminated(m_bTerminated);
47 }
48}
LayerPresets layer
SCR_AIAnimation_Loitering BaseContainerProps
Commanding menu commanding element class.
override void OnActivate()
UI Textures DeployMenu Briefing conflict_HintBanner_1_UI desc
void SCR_ScenarioFrameworkLayerBase(IEntityComponentSource src, IEntity ent, IEntity parent)
proto external Managed FindComponent(typename typeName)
proto void Print(void var, LogLevel level=LogLevel.NORMAL)
Prints content of variable to console/log.
LogLevel
Enum with severity of the logging message.
Definition LogLevel.c:14
SCR_FieldOfViewSettings Attribute