Hello all, I have question regarding actors mainly enemy ai classes. In game I have 14 enemy spawner blueprints spread out through world which every 20 seconds it decides if it spawn classes in array which are 2 different enemy types. By default it spawns both enemies at same time at each spawn point. I rigged up a not so great enemy counter that just randomly subtracts 1 from the enemy counter if its 2x over the character level. So in all reality im not keeping track of enemies in world im just setting numbers to recreate this feature. Question is how do I keep track of actors in world before and after I destroy them?
Here is the enemy spawner which you see it calls the class array in a foreachloop then spawns enemies. How to I correctly track the enemies in world?
This one below is in the Enemy blueprint which checks the health and destroys actor when health is 0.
Now I have tried several different ways in doing this all failed attempts, if someone can please point in right direction on how to do this i’ll be forever greatful… Thank you!