46 — Attack enemy building
Picks the structure of the named type that best fits the chosen property and turns the team onto it.
Editor data
- Numeric ID
46- Engine ID
TMISSION_ATTACK_BUILDING_WITH_PROPERTY- Editor name
- Attack enemy building
- Need token
NEED_BUILDING_ATTACK- Parameters
- Building type
building-type - Target property
target-property
- Building type
Caveats
- A structure of the house's declared enemy always wins over any other candidate, however the property ranks them.
- The nearest and farthest properties are measured from one member of the team rather than from its center, and the two threat properties are read off the cell the structure stands on.
- Every other candidate has to belong to a house the team's own house is not allied with, so a neutral house's structure qualifies while an ally's, and the team's own, never does.
- OnlyTargetHouseEnemy=yes on the TeamType refuses everything outside the declared enemy rather than settling for the next best.
- The line takes the team on to the next line where no candidate is found, and otherwise runs as an ordinary attack.