Arma Reforger Explorer 1.7.0.54
Arma Reforger Code Explorer by Zeroy - Thanks to MisterOutofTime
Loading...
Searching...
No Matches
SCR_MedicalItemsCountCondition.c
Go to the documentation of this file.
1
4{
5 [Attribute(defvalue: SCR_ComparerOperator.GREATER_THAN.ToString(), desc: "Condition operator", uiwidget: UIWidgets.ComboBox, enumType: SCR_ComparerOperator)]
6 private SCR_ComparerOperator m_eOperator;
7
8 [Attribute("1", UIWidgets.EditBox, "Desired count of items to check", "")]
9 private int m_iValue;
10
11 [Attribute("0", UIWidgets.CheckBox, "True - condition pass only if medical is equiped in quick slot | False - whole inventory")]
12 protected bool m_bMustBeInQuickSlots;
13
14 //------------------------------------------------------------------------------------------------
18 {
19 int count = data.GetMedicalItemCount();
21 count = data.GetMedicalItemCountInQuickSlots();
22
23 return GetReturnResult(SCR_Comparer<int>.Compare(m_eOperator, count, (int)m_iValue));
24 }
25}
SCR_AIAnimation_Loitering BaseContainerProps
Commanding menu commanding element class.
SCR_ComparerOperator
Definition SCR_Comparer.c:3
Get all prefabs that have the spawner data
UI Textures DeployMenu Briefing conflict_HintBanner_1_UI desc
SCR_VONRadialDisplay Compare
A single available action condition representation.
Returns true if count of medical items matches the condition.
override bool IsAvailable(notnull SCR_AvailableActionsConditionData data)
SCR_FieldOfViewSettings Attribute