Skip to content

6 — Attacked by any house

Fires when damage lands on the tagged object with an attacker credited for it, whatever house that attacker belongs to.

Editor data
Numeric ID
6
Engine ID
TEVENT_ATTACKED
Editor name
Attacked by any house
Need token
NEED_NONE
Parameters
None
Attachment
object
INI example
[Events]
<TriggerID>=1,6,0,0

Damage to a structure also springs this event on every tag attached to the structure owner’s house, whoever that owner is. That second offer is made for structures only, and not for one that is Insignificant=yes or is really a deployed vehicle; damage to a vehicle, an aircraft or a soldier produces nothing of the kind.

The event permits an object attachment and nothing else, so on its own it never puts a tag on a house list. The offer reaches a trigger only where something else on the same tag asks for that list, which Any Event is the usual way of doing. Such a trigger then answers for damage anywhere in its owner’s base rather than for damage to whatever it rides on. That offer names no object, so any action on the trigger that works on the object a trigger is attached to has nothing to work on.

Caveats
  • The friendly fire exception does not exist. Nothing on the path compares the attacker's house with the object's, so a hit from an ally, or from another object of the same house, satisfies the event exactly as an enemy hit does.
  • Damage that credits no attacker springs nothing, and that is the whole of the incidental damage exception. The low power damage tick is one such source.
  • Healing is not damage. A negative figure is applied to the object's strength and the routine returns before any trigger event is reached.
  • The damage handler skips the event on the blow that destroys the object. The death is then booked as a kill, which springs the event in its own right, so a fatal hit reaches it after all — once, and on an object already on its way off the map.
  • The event refuses to be marked off as having happened, so it is examined afresh on every offer rather than treated as settled by one hit.