Arma Reforger Explorer 1.7.0.54
Arma Reforger Code Explorer by Zeroy - Thanks to MisterOutofTime
Loading...
Searching...
No Matches
SCR_ArsenalWeaponsEditorAttribute.c
Go to the documentation of this file.
3{
4 override void UpdateInterlinkedVariables(SCR_BaseEditorAttributeVar var, SCR_AttributesManagerEditorComponent manager, bool isInit = false)
5 {
6 //Set sub labels
7 if (isInit)
8 manager.SetAttributeAsSubAttribute(SCR_ArsenalAmmunitionModeAttribute);
9
10 bool arsenalsEnabled = true;
11
12 //~ Make sure the ammunition is only enabled if the arsenal is enabled
13 SCR_BaseEditorAttributeVar arsenalEnabledVar;
14 if (manager.GetAttributeVariable(SCR_EnableArsenalAttribute, arsenalEnabledVar))
15 arsenalsEnabled = arsenalEnabledVar.GetBool();
16
17 //~ If Weapons null or only Attachment set SCR_ArsenalAmmunitionModeAttribute disabled
18 manager.SetAttributeEnabled(SCR_ArsenalAmmunitionModeAttribute, var && arsenalsEnabled && (var.GetInt() != 0 && var.GetInt() != SCR_EArsenalItemType.WEAPON_ATTACHMENT));
19
20 super.UpdateInterlinkedVariables(var, manager, isInit);
21 }
22}
SCR_AIAnimation_Loitering BaseContainerProps
Commanding menu commanding element class.
SCR_EArsenalItemType