/* Speak while healing script
place this in the init line of the unit: call{[unitname] execVM "Speak_while_healing.sqf"};
*/
_medic = _this select 0;
_ListOfSounds=["heal1","heal2","heal3","heal4","heal5"];
_run = true;
for [{}, {_run}, {_run}] do
{
if(animationState _medic == "AinvPknlMstpSlayWrflDnon_medic") then
{
_Sound=_ListOfSounds Select (floor (random (Count _ListOfSounds)));
_medic say _Sound;
sleep 2;
};
sleep 1;
};