mirror of
https://github.com/acemod/ACE3.git
synced 2024-08-30 18:23:18 +00:00
Cargo - Re-enable damage on unloaded tanks (#7655)
This commit is contained in:
parent
c4667c896f
commit
21c927195a
@ -51,8 +51,9 @@
|
||||
_item hideObjectGlobal false;
|
||||
_item setPosASL (AGLtoASL _emptyPosAGL);
|
||||
|
||||
if ((getText (configFile >> "CfgVehicles" >> (typeOf _item) >> "simulation")) == "carx") then {
|
||||
TRACE_1("re-enabling car damage",_item);
|
||||
private _simulationType = toLower getText (configFile >> "CfgVehicles" >> typeOf _item >> "simulation");
|
||||
if (_simulationType in ["carx", "tankx"]) then {
|
||||
TRACE_1("re-enabling vehicle damage",_item);
|
||||
[_item, "blockDamage", "ACE_cargo", false] call EFUNC(common,statusEffect_set);
|
||||
};
|
||||
}] call CBA_fnc_addEventHandler;
|
||||
|
Loading…
Reference in New Issue
Block a user