From 6e26c77430f8d14ae63ecfdd677c4ba6098a410f Mon Sep 17 00:00:00 2001 From: Vdauphin Date: Wed, 14 Feb 2018 16:00:53 +0100 Subject: [PATCH] FIX: remove weapon when cahce is destroyed --- =BTC=co@30_Hearts_and_Minds.Altis/core/fnc/cache/hd_cache.sqf | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/=BTC=co@30_Hearts_and_Minds.Altis/core/fnc/cache/hd_cache.sqf b/=BTC=co@30_Hearts_and_Minds.Altis/core/fnc/cache/hd_cache.sqf index 66146ea9b..61e2f4e98 100644 --- a/=BTC=co@30_Hearts_and_Minds.Altis/core/fnc/cache/hd_cache.sqf +++ b/=BTC=co@30_Hearts_and_Minds.Altis/core/fnc/cache/hd_cache.sqf @@ -9,7 +9,7 @@ _explosive = (getNumber(configFile >> "cfgAmmo" >> _ammo >> "explosive") > 0); if (isNil {_cache getVariable "btc_hd_cache"} && {_explosive} && {_damage > 0.6}) then { _cache setVariable ["btc_hd_cache",true]; - {detach _x; _x setVariable ["no_cache",false];} forEach attachedObjects _cache; + {detach _x; deleteVehicle _x;} forEach attachedObjects _cache; //Effects private ["_pos","_marker"]; _pos = getposATL btc_cache_obj;