Skip to content

Task forces

Mapping

Registers reusable team compositions containing up to six infantry, vehicle, or aircraft entries.

Format
Kind
Record
File
AI.INI, AIFS.INI, map file
Registered in
[TaskForces]
Section
[<TaskForce ID>]
Record form
<slot>=<count>,<ObjectType ID>

Fields

#FieldAccepted valueRequired
1CountInteger unit countYes
2TypeInfantryType, UnitType, or AircraftType IDYes

[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.

AI.INI, AIFS.INI, or map file
[TaskForces]
0=MyAttackForce
[MyAttackForce]
Name=Attack force
0=4,E1
1=1,MMCH

Each 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

KeyDescriptionValueWhen 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.stringthe type's section name

Source files

Linked at revision 51b52aa38392.