29 — Destroyed by anything [not infiltrate]
Satisfied when the tagged object is destroyed, sold or changes owner, except when it is a soldier used up walking into a structure or taking a vehicle.
Editor data
- Numeric ID
29- Engine ID
TEVENT_DESTROYED_ANY_X- Editor name
- Destroyed by anything [not infiltrate]
- Need token
NEED_NONE- Parameters
- None
- Attachment
- object
INI example
[Events]
<TriggerID>=1,29,0,0What the exception covers
Section titled “What the exception covers”The exception covers every soldier that walks into its target structure, whether it captured the structure, restored it, spied on it or did nothing at all. It also covers a soldier that takes a vehicle through the vehicle branch.
Which tag the change of owner offers this event to depends on how the soldier takes the object, because the soldier’s transferable tag may already be on it:
| How the soldier takes the object | Tag offered this event on the change of owner |
|---|---|
| An engineer captures a structure | The engineer’s tag if it is transferable, because it moves onto the structure before the owner changes. Otherwise the structure’s own tag |
| A soldier takes a vehicle through the vehicle branch | The vehicle’s own tag. The soldier’s transferable tag moves onto the vehicle only after the owner changes |
A Thief=yes soldier steals a vehicle | The thief’s tag if it is transferable, because it moves onto the vehicle first. Otherwise the vehicle’s own tag |
A Thief=yes soldier is deleted after its theft without an offer of either event. So is a VehicleThief=yes soldier that the vehicle it is heading for runs over, which hands that vehicle to the soldier’s house.
Caveats
- The event is offered in every case that offers [Destroyed by anything](/mapping/events/tevent-destroyed-any/#what-counts-besides-a-destruction), with one exception. A soldier used up walking into its target structure, or taking a vehicle through [the vehicle branch](/systems/capture/#the-vehicle-branch), is offered Destroyed by anything and not this event.
- No attacker is needed. Selling a structure, a change of owner, a vehicle sinking and an aircraft brought down by an ion storm all satisfy the event.
- The exception applies to the soldier's own offer only. A structure or vehicle that the soldier captures still changes owner, and that offers this event to the tag the captured object holds at that moment. [What the exception covers](#what-the-exception-covers) says which tag that is.
- A vehicle taken through the vehicle branch or by a [
Thief=yes](/keys/thief/) soldier offers neither event when it is later destroyed or changes owner again, if the tag it then holds is transferable.