Ok, this is a turn based prototype I’m working on. When a turn based character in the battle map “dies” it calls the “RemoveCharacter” event in my GameMode. This gets a reference to the character instance and removes that character from the array of other characters. As seen below:
At the end of every “turn” each character calls the GameMode to do various things, one of them being a Victory Check.
I am unsure why this does not work as the RemoveCharacter function in the first screenshot is ALWAYS being called before the CheckVictory function below. The idea is there are likely only two teams (player vs. ai) in each match. After every turn we want to check if the number of teams is <=1 since that means someone must have won.
Thanks for any help.