Hi, I have a portal to go to the next level.
My logic for that is to only spawn the portal when the player kills all enemies on the level. These enemies are putted manually i dont use spawn points.
In my test I create over my BP_Enemy Parent a variable to count the enemys over the level and make a Get All Actor From Clase and put BP_Enemy. When run that catches the amount of enemies ok, after that when the enemy dies put a logic for rest -1 to the variable where store the first count for total enemies and work ok.
My problem is after that I make a branch with a condition where the variable EnemiesCount are equal 0 open the portal.
This works ok… but this always opens the same level, needs a logic to always take the next level.
Or move this logic to another place and not over the enemy parent.
Any idea?
Thx
BR