Skip to content

Commit

Permalink
FIX: remove weapon when cahce is destroyed
Browse files Browse the repository at this point in the history
  • Loading branch information
Vdauphin committed Feb 14, 2018
1 parent b590b65 commit 6e26c77
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 6e26c77

Please sign in to comment.