DMS_Exile/@ExileServer/addons/a3_dms/scripts/fn_SelectMagazine.sqf
eraser1 687bbfb798 Use config function definitions
Thanks for the tip Zupa!
2015-09-04 22:40:00 -05:00

21 lines
351 B
Plaintext

/*
DMS_fnc_selectMagazine
Created by eraser1
Usage:
_weaponClassName call DMS_fnc_selectMagazine;
Apply magazine type filters if needed
*/
private["_result","_ammoArray"];
_result = "";
_ammoArray = getArray (configFile >> "CfgWeapons" >> _this >> "magazines");
if (count _ammoArray > 0) then {
_result = _ammoArray select 0;
};
_result