From 489fab4cb8c855ed26e654f5e72da7c347115073 Mon Sep 17 00:00:00 2001 From: Serg Vergun <1197314+severgun@users.noreply.github.com> Date: Fri, 23 Jul 2021 23:45:36 +0300 Subject: [PATCH] Cargo - Prevent damage to items (created from classnames) on unloading (#8324) --- addons/cargo/functions/fnc_unloadItem.sqf | 3 +++ 1 file changed, 3 insertions(+) diff --git a/addons/cargo/functions/fnc_unloadItem.sqf b/addons/cargo/functions/fnc_unloadItem.sqf index 992a4e2803..94d94276ff 100644 --- a/addons/cargo/functions/fnc_unloadItem.sqf +++ b/addons/cargo/functions/fnc_unloadItem.sqf @@ -56,6 +56,9 @@ if (_object isEqualType objNull) then { } else { _object = createVehicle [_item, _emptyPosAGL, [], 0, "NONE"]; _object setPosASL (AGLtoASL _emptyPosAGL); + + [QEGVAR(common,fixCollision), _object] call CBA_fnc_localEvent; + [QEGVAR(common,fixPosition), _object] call CBA_fnc_localEvent; }; // Invoke listenable event ["ace_cargoUnloaded", [_object, _vehicle, "unload"]] call CBA_fnc_globalEvent;