So I plugged in the script into the AI's and it just stops my game and it doesn't respond, I am using it for editor and I just have no idea what to do instead of just plugging this In for the Ai's, thanks again D.
private ["_checked"];
_checked = [];
sleep 30;
if (not local player) exitWith {};
while {true} do {
{
if (_x in _checked) then {} else
{
if ((not isPlayer leader _x) and ((count units _x) > 1)) then {
[_x] execVM "\wx_ambient_voices\DIH_ambientVoice.sqf";
};
_checked = _checked + [_x];
};
sleep 2;
} forEach allGroups;
sleep 15;
};