From 573bfbb92d80ba4ee7816870294461b5a81eb45e Mon Sep 17 00:00:00 2001 From: johnb432 <58661205+johnb432@users.noreply.github.com> Date: Sun, 7 Jan 2024 16:48:40 +0100 Subject: [PATCH] Fix not hidden --- addons/dragging/functions/fnc_createClone.sqf | 2 +- addons/dragging/functions/fnc_dropClone.sqf | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/addons/dragging/functions/fnc_createClone.sqf b/addons/dragging/functions/fnc_createClone.sqf index 3d454aea9c..6330be72f8 100644 --- a/addons/dragging/functions/fnc_createClone.sqf +++ b/addons/dragging/functions/fnc_createClone.sqf @@ -28,7 +28,7 @@ private _clone = createVehicle [QGVAR(clone), _posATL]; // Hide unit until it can be moved below terrain private _isObjectHidden = isObjectHidden _target; -if (_isObjectHidden) then { +if (!_isObjectHidden) then { [QEGVAR(common,hideObjectGlobal), [_target, true]] call CBA_fnc_serverEvent; }; diff --git a/addons/dragging/functions/fnc_dropClone.sqf b/addons/dragging/functions/fnc_dropClone.sqf index 4832740e0f..cee2932eac 100644 --- a/addons/dragging/functions/fnc_dropClone.sqf +++ b/addons/dragging/functions/fnc_dropClone.sqf @@ -43,7 +43,7 @@ if (!isNull _target) then { [{ params ["_target", "_clone", "_isObjectHidden", "_simulationEnabled"]; - if (_isObjectHidden) then { + if (!_isObjectHidden) then { [QEGVAR(common,hideObjectGlobal), [_target, false]] call CBA_fnc_serverEvent; };