2016-09-17 15:47:29 +00:00
|
|
|
class Cfg3DEN {
|
|
|
|
class Object {
|
|
|
|
class AttributeCategories {
|
|
|
|
class ace_attributes {
|
|
|
|
class Attributes {
|
2024-06-05 19:36:39 +00:00
|
|
|
class GVAR(enable) { // setting was previously GVAR(enable), so maintain for backwards compatiblity with missions
|
|
|
|
property = QGVAR(enable); // same as above
|
2016-09-17 16:08:08 +00:00
|
|
|
control = "Checkbox";
|
2024-06-05 19:36:39 +00:00
|
|
|
displayName = CSTRING(enableFire_name);
|
|
|
|
tooltip = CSTRING(enableFire_tooltip);
|
|
|
|
expression = QUOTE(if (!_value) then {_this setVariable [ARR_3('%s',_value,true)]});
|
2016-09-17 15:47:29 +00:00
|
|
|
typeName = "BOOL";
|
2017-12-06 19:13:10 +00:00
|
|
|
condition = "objectVehicle";
|
2024-06-05 19:36:39 +00:00
|
|
|
defaultValue = QUOTE(GETMVAR(QGVAR(enableFire),true));
|
2017-12-06 19:13:10 +00:00
|
|
|
};
|
|
|
|
class GVAR(enableAmmoCookoff) {
|
|
|
|
property = QGVAR(enableAmmoCookoff);
|
|
|
|
control = "Checkbox";
|
|
|
|
displayName = CSTRING(enableAmmoCookoff_name);
|
|
|
|
tooltip = CSTRING(enableAmmoCookoff_tooltip);
|
2024-06-05 19:36:39 +00:00
|
|
|
expression = QUOTE(if (!_value) then {_this setVariable [ARR_3('%s',_value,true)]});
|
2017-12-06 19:13:10 +00:00
|
|
|
typeName = "BOOL";
|
2016-11-06 12:24:00 +00:00
|
|
|
condition = "objectHasInventoryCargo";
|
2024-06-05 19:36:39 +00:00
|
|
|
defaultValue = QUOTE(if (_this isKindOf 'ReammoBox_F') then {GETMVAR(QGVAR(enableAmmobox),true)} else {GETMVAR(QGVAR(enableAmmoCookoff),true)});
|
2016-09-17 15:47:29 +00:00
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|