Arma Reforger Explorer 1.7.0.54
Arma Reforger Code Explorer by Zeroy - Thanks to MisterOutofTime
Loading...
Searching...
No Matches
SCR_ScenarioFrameworkResourceConditionValue.c
Go to the documentation of this file.
3{
4 [Attribute(defvalue: "0", desc: "Activation amount", params: "0 inf")]
5 float m_fTargetValue;
6
7 [Attribute(defvalue: "0", desc: "Operator", uiwidget: UIWidgets.ComboBox, enumType: SCR_EScenarioFrameworkComparisonOperator)]
9
10 //------------------------------------------------------------------------------------------------
11 override bool Init(notnull IEntity ent, notnull SCR_ResourceComponent resourceComponent, EResourceType resourceType)
12 {
13 super.Init(ent, resourceComponent, resourceType);
14
15 float current;
16 SCR_ResourceSystemHelper.GetStoredResources(resourceComponent, current, resourceType);
17
18 if (((m_eComparisonOperator == SCR_EScenarioFrameworkComparisonOperator.LESS_THAN) && (current < m_fTargetValue)) || ((m_eComparisonOperator == SCR_EScenarioFrameworkComparisonOperator.LESS_OR_EQUAL) && (current <= m_fTargetValue)) || ((m_eComparisonOperator == SCR_EScenarioFrameworkComparisonOperator.EQUAL) && (current == m_fTargetValue)) || ((m_eComparisonOperator == SCR_EScenarioFrameworkComparisonOperator.GREATER_OR_EQUAL) && (current >= m_fTargetValue)) ||((m_eComparisonOperator == SCR_EScenarioFrameworkComparisonOperator.GREATER_THEN) && (current > m_fTargetValue)))
19 return true;
20
21 return false;
22 }
23}
override void Init()
SCR_AIAnimation_Loitering BaseContainerProps
Commanding menu commanding element class.
UI Textures DeployMenu Briefing conflict_HintBanner_1_UI desc
SCR_FieldOfViewSettings Attribute