Multiplayer game Win or Lose logic

Hi,
I am currently working on Multiplayer game and i am confused with game logic, In my game player has to collect one single trophy to win the Match, I have made a Logic where player overlaps the Trophy and it will Destroyed…But where can i put the win logic and how to find the eligible player who has collected the Trophy??

Hello there :slight_smile:

You did not specify if you wanted local or online multiplayer.

Still this is how i set up the winning conditions in my local multiplayer game.

Inside each player BP make a Bool variable that will be set to true if the player gets the trophy.

Then inside your “GameMode” BP Make an event tick.

Forget the first branch i’ve got in the picture.

Cast to each player and get the Bool variable that you have set to true for getting the trophy and then just put anything you want to happen after that. but keep in mind that you need the first “Do once” node that i have at the end of the player 1 cast otherwise the winning condition will keep executing every frame.

Thats awesome…Thanks for your help on the issue…:slight_smile:

No problem :slight_smile:

I see that this way the game framework becomes limited for my standards. When and if i change that i will post again the edited version.

Instead of checking if every player is dead every single frame I would suggest doing it event based.

1 Like