//Waits until the unit needs to reload, and then say something. Note that sometimes especially AI units will fire from one muzzle (i.e. M203 launcher) and then switch back to the other without reloading inbetween, in which case the AI will still state 'reloading!'. Quel dommage.;

_unit = _this select 0;
_array = _this select 1;


while {alive _unit && RUG_DSAI_TerminalDistance != -1} do 
{

	if (needReload _unit > 0.99 && someAmmo _unit && (_unit distance Player) > RUG_DSAI_TerminalDistance) then 
	{
	private ["_Sounds", "_random1", "_random2"];
	_Sounds = (call _Array) select 0;	
	_random2 = floor (random (count _Sounds));
	if (_unit !=Player && vehicle _unit == _unit) then {_unit say (_Sounds select _random2)};
	sleep ((random 5) + 5);
	};

sleep 3;
};