Simple Health & Damage System
A lightweight UE5 Blueprint system for handling character health, incoming damage, hit reactions, and death.
Requirements
Unreal Engine 5 – Character Blueprint
Compatible Anim Montages for hit and death reactions (optional)
Hit sound (optional)
Required Variables
| Variable | Type | Default |
|---|---|---|
| Health | Float | 100.0 |
| Max Health | Float | 100.0 |
| Is Dead | Boolean | False |
| Hit React Anim Montage | Anim Montage Object Reference | None |
| Death Anim Montage | Anim Montage Object Reference | None |
| Hit Sound | Sound Base Object Reference | None |
Blueprint Setup
1. Damage Handling – Event Graph
Paste the Damage Handling graph into your Character's Event Graph. It processes incoming damage, clamps health between 0 and Max Health, and calls GetHit or DeadEvent depending on the remaining health.
2. GetHit – Function
Create a function named GetHit and paste the corresponding graph. Assign a compatible Hit Reaction Anim Montage and Hit Sound.
3. DeadEvent – Function
Create a function named DeadEvent and paste the corresponding graph. This function sets Is Dead to true, disables character movement, and plays the Death Anim Montage.
Important Notes
Enable Can Be Damaged on your Character.
Use Apply Damage to trigger the system.
Ensure your Animation Blueprint supports the assigned montage slots.
Disable or guard other gameplay actions when
Is Deadis true.The example is designed for basic single-player gameplay; multiplayer replication is not included.
Comments (0)
Sign in to leave a comment on this blueprint.
Login to CommentNo comments yet. Be the first to share your thoughts!