AI Group Management

AI Group Management

AI Group Management allows AI units to reorganize when low in numbers.


How it works:

It adds all units which run the script into an array and checks if the units within the group falls below the selected number. In that case the remaining units flee and regroup with any other group within the array and join them. Or in less technical terms: If we kill all but 1 guy, the one guy runs away to meet up and join his friends.


How to execute:

_nil = [this,1] execVM "FP\Grouping\Grouping.sqf";


- THIS: Any unit within the group

- 1: Number of remaining units left within the group when they start fleeing to reorganize


Where to use it:

It only makes sense to have such a script linked to patrols to deal with individual stragglers.


How to use it with framework (untested):


_u1 = [[[[12555.5,14415.9,0.148829],201,[]]],[],[]] call GW_Common_fnc_spawnGroup;

_nil = [(leader (group _u1)),1] execVM "FP\Grouping\Grouping.sqf";


Give the group a name like _u1 so you can idenfity it later. Now at the second line of code to run the script of the groups leader (works with any unit inside said group). With more then one group just continue with _u2 = .. , _u3 = .. following with (leader (group _u2)) ..

  • Version

    Updated failsafe

  • Version