From 6644a89fbfd40d974f107f0a8e7c03f5978e2e9a Mon Sep 17 00:00:00 2001 From: jonpas Date: Mon, 13 Jun 2016 15:58:42 +0200 Subject: [PATCH] More isModLoaded --- addons/gunbag/functions/fnc_offGunbag.sqf | 2 +- addons/gunbag/functions/fnc_offGunbagCallback.sqf | 2 +- addons/gunbag/functions/fnc_toGunbag.sqf | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/addons/gunbag/functions/fnc_offGunbag.sqf b/addons/gunbag/functions/fnc_offGunbag.sqf index 96d379e58c..a46d49675d 100644 --- a/addons/gunbag/functions/fnc_offGunbag.sqf +++ b/addons/gunbag/functions/fnc_offGunbag.sqf @@ -23,7 +23,7 @@ private _gunbag = backpackContainer _target; _unit call EFUNC(common,goKneeling); // play sound -if (!isNil "ACE_Backpacks") then { +if (["ace_backpacks"] call EFUNC(common,isModLoaded)) then { [_target, _gunbag] call EFUNC(backpacks,backpackOpened); }; diff --git a/addons/gunbag/functions/fnc_offGunbagCallback.sqf b/addons/gunbag/functions/fnc_offGunbagCallback.sqf index ecb1ac2d59..5d548d0e9c 100644 --- a/addons/gunbag/functions/fnc_offGunbagCallback.sqf +++ b/addons/gunbag/functions/fnc_offGunbagCallback.sqf @@ -46,6 +46,6 @@ private _mass = [_weapon, _items, _magazines] call FUNC(calculateMass); _gunbag setVariable [QGVAR(gunbagWeapon), [], true]; // play sound -if (!isNil "ACE_Backpacks") then { +if (["ace_backpacks"] call EFUNC(common,isModLoaded)) then { [_target, _gunbag] call EFUNC(backpacks,backpackOpened); }; diff --git a/addons/gunbag/functions/fnc_toGunbag.sqf b/addons/gunbag/functions/fnc_toGunbag.sqf index 3dbbaf1005..8851e5610b 100644 --- a/addons/gunbag/functions/fnc_toGunbag.sqf +++ b/addons/gunbag/functions/fnc_toGunbag.sqf @@ -23,7 +23,7 @@ private _gunbag = backpackContainer _target; _unit call EFUNC(common,goKneeling); // play sound -if (!isNil "ACE_Backpacks") then { +if (["ace_backpacks"] call EFUNC(common,isModLoaded)) then { [_target, _gunbag] call EFUNC(backpacks,backpackOpened); };