I’ve setup a simple split-screen game where you kill other players. I’m trying to figure out how to restart the level once all but one player is alive. I’m currently able to restart the level if there is just 2 players in the game. When there are more than two players I can’t get the level to restart.
On begin play I’m casting to the game mode and am getting the number of players. I then set that number to a variable.
I’m having players die from radial damage so when a player gets hit by radial damage I’m calling this function to decrease the number or players by 1 and to restart the level if the number of players reaches a certain number.
I’m doing all of this in the player blueprint.
Any ideas on what I’m doing wrong?