Epoch/Sources/epoch_code/compile/EPOCH_QuickTakeAll.sqf

24 lines
646 B
Plaintext
Raw Normal View History

2015-12-07 16:24:52 +00:00
/*
Author: Aaron Clark - EpochMod.com
Contributors:
Description:
Quick take concept for underwater looting
Licence:
Arma Public License Share Alike (APL-SA) - https://www.bistudio.com/community/licenses/arma-public-license-share-alike
Github:
https://github.com/EpochModTeam/Epoch/tree/master/Sources/epoch_code/compile/EPOCH_QuickTakeAll.sqf
*/
2015-09-14 20:55:36 +00:00
closeDialog 0;
{
_magazines = magazinesAmmoCargo _x;
clearMagazineCargoGlobal _x;
{
if !(player canAdd (_x select 0)) exitWith {};
player addMagazine[_x select 0, _x select 1];
} foreach _magazines;
} foreach nearestObjects[player, ["container_epoch"], 5];