mirror of
https://github.com/acemod/ACE3.git
synced 2024-08-30 18:23:18 +00:00
Add cook off 3den setting to ammo boxes
This commit is contained in:
parent
7de56ad9b5
commit
5032619b9a
@ -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
|
||||
};
|
||||
};
|
||||
|
@ -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);
|
||||
};
|
||||
}];
|
||||
|
Loading…
Reference in New Issue
Block a user