Add cook off 3den setting to ammo boxes

This commit is contained in:
SilentSpike 2016-11-05 14:48:48 +00:00
parent 7de56ad9b5
commit 5032619b9a
2 changed files with 2 additions and 2 deletions

View File

@ -11,7 +11,7 @@ class Cfg3DEN {
tooltip = CSTRING(enable_tooltip);
expression = QUOTE(if !(_value) then {_this setVariable [ARR_3('%s',_value,true)];};);
typeName = "BOOL";
condition = "objectVehicle";
condition = "objectVehicle + objectHasInventoryCargo";
defaultValue = "(true)"; // fix pbo project preprocessing bug
};
};

View File

@ -71,7 +71,7 @@ GVAR(cacheTankDuplicates) = call CBA_fnc_createNamespace;
["ReammoBox_F", "init", {
(_this select 0) addEventHandler ["HandleDamage", {
if (GVAR(enableAmmobox)) then {
if ((_this select 0) getVariable [QGVAR(enable), GVAR(enableAmmobox)]) then {
["box", _this] call FUNC(handleDamage);
};
}];