As it stands I have a function that when called when a character is damaged it runs through all enemies and bosses in the game to see if their HP has reached 0 to initiate their death animation or exploding to pieces or whatever. This however has led to the function being massive due to how many hostile characters we have and so it can noticeably slow down the C3 GUI when expanded.
Is there a better way to do this via a trigger event? It's not good for FPS if the game checks if their HP is 0 or lower every frame.