Recovery health system

To make a Recovery Health System, we first need a Health variable on which we can store the life of the player and, of course, it will also be used to take damage and check the Death Conditions. So, let's create a Health variable of type float:

As we understood in the previous chapter, we need to replicate this variable. Moreover, we need to give it default values (unless you have a DataTable for the player—in that case, you can assign its value from the Construction Script, like we did for the Hound). A default value of 100 will be fine for now. This is what it should look like in the Details Panel:

Next, we need ...

Get Unreal Engine Blueprints Visual Scripting Projects now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.