Return Health Data
The "Return Health Data" function can be used to return the health data of a specific RHS component instance. The health data of the component is set to private, which prevents you from easily accessing these values, so we provide this function.
Function Return Values
The "Return Health Data" function returns the current health and the maximum health as two float values. The current health describes the amount of health stored in the corresponding instance of the RHS at the exact moment of the request. The maximum health describes the maximum amount of health that this instance of the RHS can have.
Maximal Health (Float)
Current Health (Float)
How to access the function
To access the "Return Health Data" function, you first need to get an instance of the RHS Component that you want to get the health data from. To do this you can use the Get Component by Class node provided by Unreal Engine / Epic Games. This node will return an instance of the RHS component as long as a valid one was found on the target actor. Consider saving the instance as a variable for later use. Now just drag and drop from the component reference and search for the "Return Health Data" function like this:

Last updated