From 25566dd247d00e76dad8702236331027f65de5af Mon Sep 17 00:00:00 2001 From: James Kingsley Date: Mon, 7 Mar 2016 22:55:21 +0000 Subject: [PATCH] fixed group hunt --- .../ares_zeusExtensions/scripts/ARC_huntNearestPlayer.sqf | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/Addons/ares_zeusExtensions/scripts/ARC_huntNearestPlayer.sqf b/Addons/ares_zeusExtensions/scripts/ARC_huntNearestPlayer.sqf index 86e4ca7..82271aa 100644 --- a/Addons/ares_zeusExtensions/scripts/ARC_huntNearestPlayer.sqf +++ b/Addons/ares_zeusExtensions/scripts/ARC_huntNearestPlayer.sqf @@ -105,6 +105,12 @@ private _group = group _unitUnderCursor; private _aggroDistance = _this select 1; private _updateDelay = _this select 2; + private _useUnits = []; + + { + [_x] joinSilent grpNull; + _useUnits pushBack _x; + } forEach units _group; while {true} do { { @@ -153,7 +159,7 @@ _unit doMove _targetPos; }; }; - } forEach units _group; + } forEach _useUnits; sleep _updateDelay; };