- when an interface has no return, it’s an event
- but events cannot return data
- when interface returns data, it will be implemented as a function
i need the Health Variable, so the tower can For each loop every Actor reference to find the one with the most HP and set them as current target.
Untested but probably close to:
Make sure the return is valid before you ask the tower to shoot at that.
just as a function
What is wrong with that? It’s a good thing.
I use the “Box overlap actor” node after an Event tick
Consider using a slower firing timer. 10 per second may work equally well but will be 6 times faster.
You can use casting for this, ofc. You’d rely on inheritance heavily in a tower defence game.