summaryrefslogtreecommitdiffstats
path: root/Client/Module/EASA/EASA_RemoveLoadout.sqf
blob: 53b37dac5d248bfcaa710a0c64727dd8d7e405d6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
Private ['_i','_loadout','_vehicle'];
_vehicle = _this select 0;
_loadout = _this select 1;

{
	for [{_i = count(_x)-1},{_i >= 0},{_i = _i - 1}] do {
		if (_i > 0) then {
			_vehicle removeMagazine (_x select _i);
		} else {
			_vehicle removeWeapon (_x select _i);
		};
	};
} forEach _loadout;