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
Building types are numbered in the order they are registered, which Rules registration lists describes. OnlyTargetHouseEnemy covers the declared enemy, including a house that has none.
Valid values
- One number that holds both parameters: the target property times 65536, plus the building type's position in the registered building type list, counted from
0.131073is property2, nearest, with building type1.
Caveats
- A structure owned by the house's declared enemy wins over every other candidate, however the property ranks them.
- Any other candidate must belong to a house that is not allied with the team's house. A neutral or civilian house can qualify, but the team's house and its allies never do.
OnlyTargetHouseEnemy=yeson the TeamType limits the choice to the declared enemy's structures, so the line finds nothing when the declared enemy has none.- Nearest and farthest are measured from the member that joined the team most recently, not from the team's center.
- When the chosen structure is destroyed, the line picks again.
- The team takes the next line on the turn after a pick finds no structure, or when no member in formation and no aircraft can still attack. An aircraft with a weapon and no ammunition cannot attack.
- Keep the building type position inside the list. The line uses it without a range check, and a position at or beyond the end of the list reads past it.