From efd71c617965e2b668cfed36faf997720a6fc72f Mon Sep 17 00:00:00 2001 From: BaerMitUmlaut Date: Sun, 11 Oct 2020 20:42:34 +0200 Subject: [PATCH] Bury corpse to prevent desecration --- addons/dragging/functions/fnc_createClone.sqf | 2 +- addons/dragging/functions/fnc_dropClone.sqf | 1 - 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/addons/dragging/functions/fnc_createClone.sqf b/addons/dragging/functions/fnc_createClone.sqf index bf38fa42e1..c42b17e586 100644 --- a/addons/dragging/functions/fnc_createClone.sqf +++ b/addons/dragging/functions/fnc_createClone.sqf @@ -19,7 +19,7 @@ params ["_unit"]; private _clone = QGVAR(clone) createVehicle [0, 0, 0]; _clone setUnitLoadout getUnitLoadout _unit; _clone setVariable [QGVAR(original), _unit]; -_unit hideObjectGlobal true; +_unit setPosATL [0, 0, -10]; [QGVAR(cloneCreated), [_unit, _clone]] call CBA_fnc_globalEvent; diff --git a/addons/dragging/functions/fnc_dropClone.sqf b/addons/dragging/functions/fnc_dropClone.sqf index 83817babb2..d0eeb71d2c 100644 --- a/addons/dragging/functions/fnc_dropClone.sqf +++ b/addons/dragging/functions/fnc_dropClone.sqf @@ -18,7 +18,6 @@ params ["_clone"]; private _unit = _clone getVariable [QGVAR(original), objNull]; _unit setPosASL getPosASL _clone; -_unit hideObjectGlobal false; // Detach first to prevent objNull in attachedObjects detach _clone;