Arma Reforger Explorer 1.7.0.54
Arma Reforger Code Explorer by Zeroy - Thanks to MisterOutofTime
Loading...
Searching...
No Matches
SCR_ScenarioFrameworkIsInitialized.c
Go to the documentation of this file.
3{
4 [Attribute(desc: "Checked layer")]
5 ref SCR_ScenarioFrameworkGetLayerBase m_LayerBaseGetter;
6
7 //------------------------------------------------------------------------------------------------
8 override bool Init(IEntity entity)
9 {
10 if (m_bDebug)
11 Print("[SCR_ScenarioFrameworkIsInitialized.Init] debug line (" + __FILE__ + " L" + __LINE__ + ")", LogLevel.WARNING);
12
13 if (!m_LayerBaseGetter)
14 return false;
15
16 SCR_ScenarioFrameworkParam<IEntity> entityWrapper = SCR_ScenarioFrameworkParam<IEntity>.Cast(m_LayerBaseGetter.Get());
17 if (!entityWrapper)
18 {
19 PrintFormat("ScenarioFramework Condition: Entity A not found for condition %1.", this, level:LogLevel.ERROR);
20 return false;
21 }
22
23 IEntity wrappedEntity = entityWrapper.GetValue();
24 if (!wrappedEntity)
25 {
26 PrintFormat("ScenarioFramework Condition: Entity A not found for condition %1.", this, level:LogLevel.ERROR);
27 return false;
28 }
29
31 if (layerBase)
32 return layerBase.GetIsInitiated();
33
34 return false;
35 }
36}
override void Init()
SCR_AIAnimation_Loitering BaseContainerProps
Commanding menu commanding element class.
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
proto void PrintFormat(string fmt, void param1=NULL, void param2=NULL, void param3=NULL, void param4=NULL, void param5=NULL, void param6=NULL, void param7=NULL, void param8=NULL, void param9=NULL, LogLevel level=LogLevel.NORMAL)
SCR_FieldOfViewSettings Attribute