Skip to content

OnlyTargetHouseEnemy

Restricts the team's scripted target choice to the owner's declared enemy.

Specification
Applies to
TeamType
File
ai.ini or map file
Section
[<ObjectType ID>]
Value
boolean
When omitted
no

With this set, three script missions pick a target only from the house’s declared enemy:

  • On an Attack mission, the team leader’s search for a target skips every object the declared enemy does not own.
  • Without this setting, the two building-with-property missions, attack and move to, pick a matching building of the declared enemy first and otherwise take one owned by any other non-allied house. With it, they skip that second choice and pick no building when the declared enemy has none.

A mission that finds no target ends, and the team moves on to the next line of its script.

The filter has one gap on the Attack mission, and it depends on the team’s leader. The leader is the most recently joined member that is in formation, armed or not.

  • If a computer house’s unarmed engineer leads, it picks the building its house wants recaptured when that building is within 15 cells.
  • If a vehicle thief leads, it picks the vehicle it is already heading for when that vehicle is within 15 cells and is not a train.

In both cases the owner of the target does not matter.

The setting does not restrict the members’ own targeting. Each member still scans for targets and retaliates whichever house the target belongs to.