Arma Reforger Explorer 1.7.0.54
Arma Reforger Code Explorer by Zeroy - Thanks to MisterOutofTime
Loading...
Searching...
No Matches
SCR_ScenarioFrameworkVariableValueCondition.c
Go to the documentation of this file.
3{
4 [Attribute(desc: "Name of the variable")]
5 string m_sVariableName;
6
7 [Attribute(desc: "Check if the variable has set this value or not.")]
8 string m_sVariableValueToCheck;
9
10 //------------------------------------------------------------------------------------------------
11 override bool Init(IEntity entity)
12 {
13 // Here you can debug specific Condition instance.
14 // This can be also adjusted during runtime via Debug Menu > ScenarioFramework > Condition Inspector
15 if (m_bDebug)
16 Print("[SCR_ScenarioFrameworkVariableValueCondition.Init] debug line (" + __FILE__ + " L" + __LINE__ + ")", LogLevel.WARNING);
17
19 if (!scenarioFrameworkSystem)
20 return false;
21
22 string outValue;
23 scenarioFrameworkSystem.GetVariable(m_sVariableName, outValue);
24
25 if (outValue.IsEmpty())
26 return false;
27
28 return outValue == m_sVariableValueToCheck;
29 }
30}
override void Init()
SCR_AIAnimation_Loitering BaseContainerProps
Commanding menu commanding element class.
UI Textures DeployMenu Briefing conflict_HintBanner_1_UI desc
static SCR_ScenarioFrameworkSystem GetInstance()
bool GetVariable(string key, out string value)
Get value of given variable.
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