Arma Reforger Explorer 1.7.0.54
Arma Reforger Code Explorer by Zeroy - Thanks to MisterOutofTime
Loading...
Searching...
No Matches
SCR_WeaponMagazineCountCondition.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("0", UIWidgets.EditBox, "", "")]
9 private int m_iValue;
10
11 //------------------------------------------------------------------------------------------------
14 override bool IsAvailable(notnull SCR_AvailableActionsConditionData data)
15 {
16 int additionalMagazines = data.GetAdditionalMagazinesCount();
17 bool result = SCR_Comparer<int>.Compare(m_eOperator, additionalMagazines, m_iValue);
18 return GetReturnResult(result);
19 }
20}
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
A single available action condition representation.
Returns true if the count of additional magazines in character's inventory matches current condition.
SCR_FieldOfViewSettings Attribute