Skip to content

32 — Destroy attached building

Kills every object whose tag is attached to this trigger, and damages a bridge at the cell the trigger sprang from.

Editor data
Numeric ID
32
Engine ID
TACTION_DESTROY_OBJECT
Editor name
Destroy attached building
Need token
NEED_NONE
Parameters
None
Attachment
object
INI example
[Actions]
<TriggerID>=1,32,0,0,0,0,0,0,

The action kills each infantry, vehicle, aircraft and structure that meets all of:

  • it has strength left;
  • it is on the map, not in limbo, so passengers and objects inside a factory are skipped;
  • it holds the tag that this trigger belongs to.

The damage uses C4Warhead, which chooses the death effects, such as the infantry death animation.

Destroyed by anything and Destroyed by anything [not infiltrate] spring on a victim’s tag only when that tag did not fire this trigger, because a tag ignores offers while it is being sprung. Every victim holds the tag whose trigger is running. The destroyed events therefore spring on victims only when Force Trigger, run by a trigger on a different tag, fired this trigger.

The action damages a bridge only when the offer that fired the trigger named a cell. It damages the bridge at that cell up to four times, and stops as soon as the span is destroyed. This happens even when DestroyableBridges=no.

The cell depends on the event that fired the trigger:

EventCell
Cell entryThe tagged cell
A line crossingThe cell the infantry or vehicle entered, anywhere along the row or column
Zone entryThe destination of the infantry or vehicle, anywhere in the zone
Any other event, or Force TriggerNone, so no bridge is damaged
Caveats
  • Every infantry, vehicle, aircraft and structure that holds the same tag as the fired trigger is killed, not only the object that sprang it. For a TeamType's tag, that means the members of the one team whose tag fired, not other teams of the same type.
  • The damage equals the victim's remaining strength and is applied as forced damage. The armor table, Immune=yes, the prone reduction and the cyborg's crawling reprieve do not apply.
  • No attacker is recorded. No house is angered or gains points, nothing gains experience, and Attacked by any house and Destroyed by any house never spring on the victim's tag.
  • The [bridge damage](#the-bridge) does not depend on anything being killed.