Hello, I am attempting to create a win-state when all of two different enemy types in the level are dead/gone. I have attached the code that I’ve tried to create.
I’m trying to check for the length of both of these enemy bp’s (array appended together), triggering a print text when the length is equal to 0. But I don’t know how to check for the length of both of the BP’s and not just one.
Why not just create an array of type actor or even object => basically a base class to these two classes and add to that array in the final step just get it’s length.
The bp could be optimized to cache the ui into a map and just use that as a target instead of recreating it but it’s not worth the effort for a test project