How to make if team got killed spawns for a longer time

How to make if my team or the enemy team if anyone got killed they spawn normally but if all the team got killed exactly 6 players they all spawn on a longer time like if someone got killed from 1 player to 5 players they spawn 3s and if the team got eliminated they spawn for like 12s
Hope someone replys or help me :heart:

rule(“Rule 1”)
{
event
{
Ongoing - Each Player;
All;
All;
}

conditions
{
	Team Of(Event Player) == All Dead Players(Team Of(Event Player));
}

actions
{
	Set Respawn Max Time(All Players(Team Of(Event Player)), 30);
	Wait Until(Has Spawned(Event Player), 99999);
}

}
im not gonna tell you why this works just that it does

I don’t think this will actually work, since in the conditions, you are comparing a Team value to an array of players. Instead, you should perhaps do Number Of Living Players(Team Of(Event Player)) == 0. (I hope I got the value right) After the two actions you listed, you need to set the respawn time back to normal as well (although this depends on which gamemode OP is using)

1 Like

No i mean like if not full team died like from 1-5 players they respawn in 3s not the normal spawn 12s and when a full team got eliminated 6players they spawn 15s for example how i can make both the 1-5 and team kill 6

that sounds like your gonna want to screw around with variables
like maybe set the var to 10 and add to it when someones dead

Sorry doesnt seems to be working with me is it because the var or i didnt do it right can you for example show me exactly what do u mean to do , if ur free lol :confused:

variables
{
global:
0: team_1_spawn_Time
1: team_2_spawn_time
}

rule(“setup”)
{
event
{
Ongoing - Global;
}

actions
{
	Global.team_1_spawn_Time = 10;
	Global.team_2_spawn_time = 10;
}

}

rule(“team1”)
{
event
{
Player Died;
All;
All;
}

conditions
{
	Is Dead(Event Player) == True;
}

actions
{
	Global.team_1_spawn_Time += 3;
	Wait Until(Has Spawned(Event Player), 99999);
	Global.team_1_spawn_Time -= 3;
}

}

rule(“team2”)
{
event
{
Player Died;
Team 2;
All;
}

conditions
{
	Is Dead(Event Player) == True;
}

actions
{
	Global.team_2_spawn_time += 3;
	Wait Until(Has Spawned(Event Player), 99999);
	Global.team_2_spawn_time -= 3;
}

}

rule(“fixrespawntimes”)
{
event
{
Ongoing - Each Player;
All;
All;
}

actions
{
	Set Respawn Max Time(All Players(Team 1), Global.team_1_spawn_Time);
	Set Respawn Max Time(All Players(Team 2), Global.team_2_spawn_time);
	Wait(0.016, Ignore Condition);
	Loop;
}

}
not sure if this will work but its the right idea

Hey so i tried what you’ve just said and kinda didn’t work the prob is if the team got killed they spawn under a sec and it supposed to be for like 12s and from 1/5 players they die for like 3s i’ve made a code if you can check it , it would be glad and alot for me here is the code 94D4Z