Having trouble getting the health component to work on my own player controller. I read the documentation but I would really like to see a blueprint of doing this exactly as I’m not sure how to initialize it.
Actually can you write up how to implement this system on our own characters? Some sort of Installation guide or something. I drag and drop the components to my player controller but nothing happens. Not sure what to do to make it work or activate.
Hey there. Have you taken a look at the Initial Setup part of the Health Manager documentation ? As stated in there…
After adding the C_Manager-Health component to your player controller, the component merely needs to be initialized properly. By default, this is all handled automatically in the included **SurvivalController **blueprint by the **Initialize **function, which is run on Event BeginPlay .
If attempting to implement the health manager in your own controller, you will be required to run the components function called Event Initialize on startup, parsing a reference to the player controller.
So in order to initialize the health manager, you need to do something similar to this in your player controller:
This will intialize the manager. However you also need to hook it up to the damage system UE has (or your own if you have it). Again, I recommend looking at the Initial Setup portion of the Health Manager Documentation as it includes example screenshots, as well as tells you where you can refer to in the included SurvivalController example to learn these sorts of things.