hello! so im making a game where you have to protect a beehive in the middle of the map and ai characters spawn and attack it. So basically i want them to go there and when they overlap with the object, they deal damage every second. Everything seems to make sense to me but i cannot figure out how to add the player character as “damaged actor” in the apply damage node in the beehive’s blueprint. I tried with a variable and selecting the reference of the Player_BP but it didnt work…
Is there something im missing or how can i add the reference Player_BP in another blueprint (in this case, the beehive)?
So i add the overlap nodes on the attackers. And how do i apply the damage to the player when they attack the beehive? And how do i say that this only happens when they overlap with the beehive and nothing else?
Okay i see, so basically like a branch to see if the overlap is on the beehive. How did you add it in this blueprint? Is it a newly created variable with the class reference to the beehive or how?
You don’t need the variable since you won’t be changing that class, I just don’t have a beehive class to reference and didn’t want to confuse you by checking whether it’s something random.
There’s a dropdown menu when checking if classes are equal, so you can just pick the beehive class from there