After defeating an enemy, their health becomes the players health
The best way to explain this will be to give an example. You the player starts the game with 10 health. You come across an enemy with 15 health. When you defeat him your health will be 15 health now and the same would be for if you defeated an enemy with a health of 5, your health would become 5 health.
I've included a couple of BP screenshots, hopefully they are of use.
Any help on this would be great. Thanks!
I believe I came up with the answer. It seems to be a very simple way and I'm not sure if this is what you meant Ben, but I appreciate the help and it gave me motivation to figure it out, seeing that others were putting there time into helping.
I did this in the enemy BP so I can cast to the player and it should be easy to put it into other enemy BPs so I can easily change the variables that are cast to the player after the enemy is defeated.
I'm going to post my screenshot of what I came up with, so any feed back would be greatly appreciated. Just so I can get an idea if this is the right way of going about what I meant to accomplish.
On your base class for players add a function called,
When you receive the attack in your
answered Aug 09 '17 at 09:48 PM
Follow this question
Once you sign in you will be able to subscribe for any updates here