i want to spawn enemies in waves and trigger events when all enemies of a wave are dead. I'm thinking to store the UID of every spawned enemy in an array and loop through my array to check on whether each enemy is still alive.
I'm guessing I have a syntax error somewhere, cos it's currently not working and I'm not too sure I'm using the array commands correctly. So can someone please tell me where I'm wrong:
Upon spawning I store the object's UID in the array, expanding it for new entries:
I track my enemies by checking on each of them in a loop: