Skip to content

Commit

Permalink
Improves fnc_doGroupAssault (#385)
Browse files Browse the repository at this point in the history
* Improves fnc_doGroupAssault

Improves how AI groups clear buildings by dividing teams into impromptu "Fireteams".
Especially effective for larger groups.

* Update fnc_doGroupAssault.sqf

Make more gooder and not using not alias. Yes.
  • Loading branch information
nk3nny authored May 5, 2024
1 parent 1b74a03 commit dae8942
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions addons/main/functions/GroupAction/fnc_doGroupAssault.sqf
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@ private _targetPos = _pos select 0;
// get unit
private _unit = _x;
private _assaultPos = _targetPos;
if (((_forEachIndex % 4) isEqualTo 0) && {count _pos > 1}) then {_assaultPos = _pos select 1};

// manoeuvre
_unit forceSpeed 3;
Expand Down

0 comments on commit dae8942

Please sign in to comment.