Hello everyone! how i can do when only all enemies are dead in radius to get branch work? i have a bool trigger, and getting all actors of class and each loop makes only the first dead shoot the trigger, how i can make when only all bools are true get branch work?
here is screen of my setup.
create a overlap sphere an get all overlap actors.
i know about that, i mean make the branch work only when all enemies dead, not one of them.
Just initialize a variable to true and if a single one is not dead, set it to false.
some sudo code:
bool AllDead = true;
for each actor in get all actor
if not dead
AllDead = false
break
It works! Thank you very much mate, i spend few hours trying to resolve this! never knew it was so simple.