Core Concepts
HealthSystem structures vitality into intuitive defensive layers.
Damage Absorption Flow#
When an actor receives damage, HealthSystem evaluates protection in this order:
- Invulnerability Check: If the actor is currently immune or in post-hit cooldown, incoming damage is discarded.
- Armor Layer: If armor is equipped, incoming damage is mitigated by the armor rating percentage before passing through.
- Shield Layer: Depletes shield points first. If damage exceeds remaining shields, the leftover damage spills over to health.
- Health Layer: Reduces base health. If health reaches 0, the component triggers the On Death event.
Click to expand
Server Authority & Replication#
In multiplayer games:
- The Server calculates all damage, mitigation, and regeneration.
- Vital statistics replicate to clients using Unreal's optimized replication with RepNotifies.
- UI elements bind directly to delegate events, ensuring zero jitter and immediate updates.