Fix not hidden

This commit is contained in:
johnb432 2024-01-07 16:48:40 +01:00
parent 4a5f056d71
commit 573bfbb92d
2 changed files with 2 additions and 2 deletions

View File

@ -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;
};

View File

@ -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;
};