Quarry target category
Broad target categories a team attack mission scans for, and that a house records as its preferred target.
- Engine enum
QuarryType- Input form
- Integer
A quarry is the kind of target a team attacks. The team’s Attack… mission names a category, and the team leader searches the whole map for the best enemy of that kind. Target selection explains how the candidates are ranked.
Category 2 accepts every structure, including the factories, armed structures and power plants that categories 6, 7 and 9 pick out. Each of those three limits the search to its own kind of structure.
A value outside the list works like category 0. The team gets no target and moves on to the next line of its script.
Preferred target… also takes a quarry category, but it stores the category on a house instead of giving it to a team. That page describes what the stored category does.
Values
10 of 10
| Input | Meaning | Engine constant | Stored value |
|---|---|---|---|
0 | No category, and no target is assigned. | QUARRY_NONE | 0 |
1 | Any suitable enemy. | QUARRY_ANYTHING | 1 |
2 | Structures of any kind. | QUARRY_BUILDINGS | 2 |
3 | Vehicles and structures whose type sets a nonzero Storage, such as harvesters and refineries. | QUARRY_HARVESTERS | 3 |
4 | Infantry. | QUARRY_INFANTRY | 4 |
5 | Vehicles of any kind, harvesters included. Landed aircraft also count, as do structures that can undeploy into a vehicle, except a construction yard. | QUARRY_VEHICLES | 5 |
6 | Structures whose type sets Factory. | QUARRY_FACTORIES | 6 |
7 | Armed structures. | QUARRY_DEFENSE | 7 |
8 | The same search as 1. Despite the name, targets near the house's base get no preference. | QUARRY_THREAT | 8 |
9 | Structures that generate power. A structure with a larger power output is preferred. | QUARRY_POWER | 9 |
No enum values match this filter.
Used by
- Preferred target...
TACTION_PREFERRED_TARGET - Attack...
TMISSION_ATTACK
Source files
Linked at revision 51b52aa38392.