Skip to content

Commit

Permalink
Merge pull request #488 from Vdauphin/FIX-cache
Browse files Browse the repository at this point in the history
FIX: Remove weapons when cache is destroyed
  • Loading branch information
Vdauphin authored Feb 16, 2018
2 parents b590b65 + 6e26c77 commit 898bbf6
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 898bbf6

Please sign in to comment.