Task forces
Registers reusable team compositions containing up to six infantry, vehicle, or aircraft entries.
- Kind
- Record
- File
AI.INI,AIFS.INI,map file- Registered in
[TaskForces]- Section
[<TaskForce ID>]- Record form
<slot>=<count>,<ObjectType ID>
Fields
| # | Field | Accepted value | Required |
|---|---|---|---|
| 1 | Count | Integer unit count | Yes |
| 2 | Type | InfantryType, UnitType, or AircraftType ID | Yes |
[TaskForces] values name the TaskForce sections to load. The number to the left of a [TaskForces] line is only that line’s name. Inside a TaskForce section the number is the member’s slot, and each section accepts slots 0 through 5.
Keep a task force ID to 23 characters or fewer. The game reads only the first 23 characters of a [TaskForces] value and loads the section with that shortened name, so a longer ID gets no members. A team type whose TaskForce= names the full ID gets a separate task force, which is also empty.
OpenTS loads AI.INI, then AIFS.INI when Firestorm is enabled, then the map’s task forces. When a later file defines a task force ID that an earlier file already defined, its section replaces that task force’s whole member list for the scenario. Name= and Group= keep their earlier values unless the later section sets them. A later file that lists the ID under [TaskForces] but has no section of that name leaves the task force unchanged.
[TaskForces]0=MyAttackForce
[MyAttackForce]Name=Attack force0=4,E11=1,MMCHEach member’s type is looked up among infantry, then vehicles, then aircraft. Structures are not accepted. A member whose type matches none of these is dropped. The remaining members close up in slot order, so neither a dropped member nor a skipped slot number leaves a gap.
Accepted settings
2 of 2
| Key | Description | Value | When omitted |
|---|---|---|---|
Group[<ObjectType ID>] | The recruitment group a team draws its members from, taken from the TaskForce when the TeamType leaves its own unset. | integer | -1 |
Name[<ObjectType ID>] | The display name of a type definition, a scenario, a multiplayer map, or a music track. | string | the type's section name |
No keys match the current filters.
Source files
Linked at revision 51b52aa38392.