Skip to content

48 — Destroyed by anything

Fires when the tagged object is destroyed, sold or captured, with or without an attacker credited.

Editor data
Numeric ID
48
Engine ID
TEVENT_DESTROYED_ANY
Editor name
Destroyed by anything
Need token
NEED_NONE
Parameters
None
Attachment
object
INI example
[Events]
<TriggerID>=1,48,0,0

Besides an ordinary destruction, the event fires in these cases:

  • The object changes owner, whether an engineer captures it, a thief takes it or a trigger action gives it away. Capture lists every change of owner.
  • A structure is sold.
  • A vehicle sinks. The event fires when it has gone under.
  • An ion storm brings down an aircraft.
  • Ice breaks under infantry or a landed aircraft, which is removed at once. A vehicle on breaking ice sinks instead, unless its MovementZone lets it swim.
  • A soldier holding the tag is used up walking into a structure or taking a vehicle through the vehicle branch. The soldier is deleted whether or not it achieved anything.

An object that changes owner is offered the event on the tag it holds at that moment. When an engineer captures a structure or a Thief=yes soldier steals a vehicle, a transferable tag on the soldier moves onto the object first, so the event fires on the soldier’s tag.

A Thief=yes soldier that steals a vehicle is deleted without an offer of its own. Its tag fires only if it was transferable and moved onto the vehicle. A vehicle thief is also deleted without an offer when the vehicle it is heading for drives over it and changes owner. Its tag does not move onto the vehicle.

Destroyed by anything [not infiltrate] fires in every case in the list above except the soldier used up walking into a structure or taking a vehicle.

Caveats
  • No attacker is needed. Destroyed by any house fires only when an attacker is credited, so it misses every case listed above.
  • Once a soldier has walked into a vehicle and taken it, or a Thief=yes soldier has stolen it, a transferable tag on the vehicle is offered no destruction event. This holds when the vehicle is later destroyed and when it changes owner again.