Moved to ACE3 in v3.14.0 (originally added in ACEX v3.0.0)

Headless Framework

Component may use acex prefix in certain variables, events and class names for backwards compatibility!

1. Overview

The system works on the basis of unit spawning, when a unit is spawned it will schedule a rebalance after the specified delay (described below), after the delay rebalance runs on all groups. Groups already local to any Headless Client are skipped, also those blacklisted (described below) and in the same group as any player are skipped. All others applicable for a transfer are then transferred in round-robin fashion, equalizing the number of groups on each Headless Client (most effective with 3 Headless Clients).

In an event when a Headless Clients disconnects during the mission (is kicked, loses connection or similar) all units local to that Headless Client are automatically transferred to the server by Arma 3 and a full rebalance will be forced, meaning all units, including those already on other Headless Clients, are transferred again to equalize the load. Same happens when a Headless Client connects during the mission.

A server admin or mission maker can also define the minimal delay between transfers, in order to minimize the desync due to changes in locality of many units. Log can also be enabled to keep track of the transfers (note: it is counting groups and not units). That can be set through ACE3 Settings or a mission module.

1.1 End Mission

Since ACEX v3.1.0 (before merge into ACE3) Headless component supports automatic ending of mission when Headless Clients are connencted but no players are present. It is basically server.cfg setting persistent = 1; with Headless Client support.

As of ACEX v3.2.0 (before merge into ACE3) this feature can also be enabled without enabling AI distribution (overall setting).

2. Scripting

2.1 Manipulating HC Transfers of Groups via function

ace_headless_fnc_blacklist

Arguments Type Optional (default value)  
0 Units Object, Group or Array of both Required
1 Add (true) or remove (false) from blacklist Bool Optional (default: true)
2 Owner to transfer units to Number Optional (default: -1)
3 Rebalance (0 = no rebalance, 1 = rebalance, 2 = force rebalance) Number (default: 0)
R None None Return value

Force rebalance means that all units, including the ones that are on the HCs, are rebalanced amongst the HCs, whereas rebalance means that newly spawned units are going to be evenly distributed amongst HCs. Therefore, rebalance does not guarantee that the HCs will have an equal amount of groups, whereas force rebalance does.

2.2 Disable Transferring for a Group via variable

To prevent a group from transferring to a Headless Client use the following line on a unit within a group:

this setVariable ["acex_headless_blacklist", true];

This variable can also be set on vehicles, disabling transferal of any groups having units in said vehicles.

3. Limitations

Some Arma 3 features are incompatible, this is up to BI to add support. Disable transferring for units using the following features to ensure expected functionality:

  • Vanilla Support Modules (will stop functioning)

Additionally, groups will not be transferred due to lack of support if they:

  • Have waypoints with synchronized triggers (waypoint would not change status based on trigger condition) (added in ACEX v3.2.0 - before merge into ACE3)

Groups will not be transferred to avoid issues:

  • If a player is within the group.
  • If they contain UAVs.