# Health and damage

> Aego 0.12.5 · development; docs build `4a32b816933e02930662f6a443cb25abe6050d090c55e237cbff5c44ae9b25f8`. [Build manifest](/docs-build.json).

[Health](/ref/gameplay.Health.md) holds hit points. Hitboxes, kill zones and scripts damage it with `Damage(amount, source)`, `Kill(source)` and `Heal(amount)`; at zero it dies once and stays dead until `Revive(hp)`.

    hp := node.Get<Health>()
    if hp.Damage(2, other) {
        audio.PlayEvent(HitSound)
    }

After a hit the node ignores damage for Invuln Time seconds of game time. That time starts after the step, so all hits of one step count: two swords landing together both hurt, and `Died` still fires once. `SetInvulnerable(seconds)` makes the node untouchable on purpose.

At death a node with [Respawn](/ref/gameplay.Respawn.md) comes back; otherwise Destroy On Death removes it and Despawn On Death returns it to its pool. Team keeps hitboxes of the same team away from it unless they allow friendly fire.

In the scene press J next to the dummy to strike it; it shows its hit points and comes back a second after it dies.
