Game Maker

Entity Hit Entity

Triggers when a non-player entity damages another non-player entity.

This event fires when a mob-vs-mob damage event occurs.

Action Values

  • Entity: The entity that dealt the damage (the attacker).
  • Target Entity: The entity that received the damage (the victim).
  • Damage: A Number value representing the damage dealt.

Event Configuration

  • Attacker Type: Filter by the type of the attacking entity.
  • Victim Type: Filter by the type of the damaged entity.
  • Cancel Event: If true, the damage is cancelled.

Use Cases

  • Creating faction-based mob battles where certain mobs won't attack each other.
  • Making a "boss" mob that is immune to damage from its minions.