I was wanting to know what the best method for a simple damage system would be. Preferably done with an overlap on a hitbox (not the capsule collision) on the player. My scenario is this:
I have an enemy that chases the player. When the enemy gets within range of the player (in this case, standing in the hitbox) it should damage them. I want this damage to be loopable, I.E. loop about one hit per second or so as long as the enemy is still in the hitbox. I want to eventually have multiple damage sources, so maybe do the damage calculation in the player BP. Perhaps find a way to pass an integer or float variable from the damage instigator to the player BP when the damage script is called.
I have an enemy that chases the player. When the enemy gets within range of the player (in this case, standing in the hitbox) it should damage them. I want this damage to be loopable, I.E. loop about one hit per second or so as long as the enemy is still in the hitbox. I want to eventually have multiple damage sources, so maybe do the damage calculation in the player BP. Perhaps find a way to pass an integer or float variable from the damage instigator to the player BP when the damage script is called.
Comment