Arma Reforger Explorer
1.7.0.54
Arma Reforger Code Explorer by Zeroy - Thanks to MisterOutofTime
Toggle main menu visibility
Loading...
Searching...
No Matches
SCR_ArsenalWeaponsEditorAttribute.c
Go to the documentation of this file.
1
[
BaseContainerProps
(),
SCR_BaseEditorAttributeCustomTitle
()]
2
class
SCR_ArsenalWeaponsEditorAttribute
:
SCR_ArsenalBaseEditorAttribute
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
}
BaseContainerProps
SCR_AIAnimation_Loitering BaseContainerProps
Commanding menu commanding element class.
Definition
SCR_AIAnimationWaypoint.c:14
SCR_EArsenalItemType
SCR_EArsenalItemType
Definition
SCR_EArsenalItemType.c:3
SCR_ArsenalAmmunitionModeAttribute
Definition
SCR_ArsenalAmmunitionModeAttribute.c:3
SCR_ArsenalBaseEditorAttribute
Definition
SCR_ArsenalBaseEditorAttribute.c:3
SCR_ArsenalWeaponsEditorAttribute
Definition
SCR_ArsenalWeaponsEditorAttribute.c:3
SCR_BaseEditorAttributeCustomTitle
Definition
SCR_BaseEditorAttribute.c:876
SCR_BaseEditorAttributeVar
Definition
SCR_BaseEditorAttributeVar.c:2
SCR_BaseEditorAttributeVar::GetBool
bool GetBool()
Definition
SCR_BaseEditorAttributeVar.c:56
SCR_BaseEditorAttributeVar::GetInt
int GetInt()
Definition
SCR_BaseEditorAttributeVar.c:20
SCR_EnableArsenalAttribute
Definition
SCR_EnableArsenalAttribute.c:3
scripts
Game
Editor
Containers
Attributes
SCR_ArsenalWeaponsEditorAttribute.c
Generated by
1.17.0