DMS_Exile/@ExileServer/addons/a3_dms/scripts/fn_SelectMagazine.sqf
eraser1 031dd386ad Minor improvements
Added distance to the party member notification when they kill an AI

The mine created by using "DMS_explode_onRoadkill" is spawned on the
player, so the player can't get away with running an AI over if he/she
simply drives really fast.
2016-01-09 11:06:42 -06:00

23 lines
352 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