mirror of
https://github.com/Defent/DMS_Exile.git
synced 2024-08-30 16:52:12 +00:00
e3d11a0aa5
Lots of optimizations...
20 lines
333 B
Plaintext
20 lines
333 B
Plaintext
/*
|
|
DMS_fnc_selectMagazine
|
|
Created by eraser1
|
|
|
|
Usage:
|
|
_weaponClassName call DMS_fnc_selectMagazine;
|
|
|
|
Apply magazine type filters if needed
|
|
*/
|
|
|
|
private _result = "";
|
|
private _ammoArray = getArray (configFile >> "CfgWeapons" >> _this >> "magazines");
|
|
|
|
if (count _ammoArray > 0) then
|
|
{
|
|
_result = _ammoArray select 0;
|
|
};
|
|
|
|
_result
|