Stamina and health systems or other similar systems are available to buy on the UE4 Marketplace. I wanted to make something open source so people can learn without having to buy some blueprints.
- The character uses his stamina points when he runs or jumps. Stamina points regenerate themselves after a while.
- The character cannot aim when running.
- The character will lose health points when damage is inflicted. Health points regenerate themselves after a while.
In game examples
HUD - Stamina + Health + BloodMarks
Display numeric indicators and progress bars.
Death Menu
Hide current HUD and character hands before displaying a red background with the menu on top.
How to use the systems
Blueprints
Initialize the systems within a character's EventGraph Blueprint
Run
Jump
Aim
Tick
Inflict Damage
Character Movement System
EventGraph
IsMoving
Jump
Run
StopRunning
Stamina System
EventGraph
IsMoving
Jump
Stamina HUD
Designer
EventGraph
GetHealthAmount
Icon
Health System
EventGraph
RegenHealth
DecreaseHealth
Death
CheckHealth
AddBloodMarks
Health HUD
Designer
EventGraph
GetHealthAmount
Icon
BloodMarks HUD
Designer
EventGraph
GetHealthAmount
Icon
Death Menu
Designer
EventGraph
Authors and Contributors
Louis-Guillaume Carrier-Bédard (@lgcarrier)