How do I make game end when one team knocked out?

how do I make the game end automatically when one team knocked out?
I tried to find a existing guide but they are all to complicated and hard to understand

I would recommend trying to read through the guides and asking more specific questions if you don’t understand something (those guides should be able to explain it better and more clearly than we can). However if you’re looking for an alternative you could have both teams defend a button that would be practically impossible to press unless their entire team is knocked out.

Ill help you bro @speedythegamedesiner

  1. Create a Lifecicle: Set up a lifecycle to listen for “Player Knocked Out” events.

  2. Create a Relay: Connect the lifecycle to a relay. make the relay to only pass the signal when the knocked-out player belongs to the team you want to track.

  3. Create a Trigger: Connect the relay to a trigger. Within the trigger, use block code to: Create a number property (like, “Team1_Players_Remaining”) and initialize it with the initial number of players on that team. Each time the trigger receives a signal, “”“decrement”“”"/reducce the property by one. When the property reaches zero, broadcast a signal ( “Team1_Eliminated”).

  4. Create an End Game Device: Set up an end game device and configure it to listen for the “Team1_Eliminated” signal.

2 Likes

@SuffyPro97
can you put some screenshots for the block code part?

you don’t need any blocks

This topic was automatically closed 3 hours after the last reply. New replies are no longer allowed.