Hey Guys,
I am new to workshop and I cannot figure out how to create a certain amount of lives per team. I’m trying to make a 4v4 game mode where each team has 6 re spawns (10 lives total with the starting lives). Does anyone know how to do this?
Hey Guys,
I am new to workshop and I cannot figure out how to create a certain amount of lives per team. I’m trying to make a 4v4 game mode where each team has 6 re spawns (10 lives total with the starting lives). Does anyone know how to do this?
Welcome to the forums!
What you could do is give each team a Global Variable (team 1 gets global variable A, the other gets B).
When someone dies, make a rule like this:
Player Died
Team 1
Conditions
none
Actions:
If(Compare)(Global variable(A) >= 1;
Respawn(Event Player);
Modify Global Variable(A) -= 1;
Else;
Respawn(Event Player);
Set Status(Event Player(Phased Out));
Set Invisible(Event Player(All Players));
Set Damage Dealt(Event Player(0))
That would be your rule for team 1. To make it into the same for team 2, copy the rule, change the viable players to team 2, and then change all instances of global variable A to global variable B.
Of course, before hand, you’d want to set each one to the total amount of respawns you want. For example, if you want your limit to be 10 respawns, start the game by setting both global variable A and B to 10.
Awesome! Thank you man, I’ll give it a shot!
here ill reply so you can reply back to yeetles
Hey, so here’s what I have so far:
(lives team 1)
-Ongoing Global
–Golbal variable A = 6
(Lives team 2)
-Ongoing Global
–Global Variable B = 6
(Round Win tracker 1)
-Ongoing Global
–Global Variable C = 1
(Round Win Tracker 2)
-Ongoing Global
–Global Variable D = 1
(Team 1 Life Tracker)
-Player Died, Team 1
–If Global A >= 1
— Respawn Event Player
—Global Variable B -= 1
–Else
—Disable Built in game mode respawning (Event Player)
(Team 2 Life Tracker)
-Player Died, Team 2
–If Global B >= 1
— Respawn Event Player
—Global Variable B -= 1
–Else
—Disable Built in game mode respawning (Event Player)
(Team 1 win tracker)
-Player Died , team 2
–If Global Variable C < 10
—Global Variable C +=1
–Else
—Declare Round Victory Team 1
(Team 2 win tracker)
-Player Died , team 1
–If Global Variable D < 10
—Global Variable D +=1
–Else
—Declare Round Victory Team 2
I took what you had but had to change the player death, because nulled players could still interact with the map, and then I added a round win condition, so that way when you had killed all 10 of the enemy, the round would end instead of waiting for the countdown. The game is 3 rounds on the capture point maps with 4v4. The idea is that you can kill the enemies or use the countdown of the control point to pressure your enemies.
My question now is, How do I reset Variables ABCD at the end of the round? Because on the second round, first kill basically ends the game because the variables are still at the same numbers as before.
Let me know if you have any thoughts!
inbetweenrounds is a condition
Roger, I’ll give it a shot, thanks!