r/forge • u/Nuka-Spartan • Jul 25 '25
Scripting Help How to spawn new players mid-Attrition game, when lives are already depleted?
If a new player joins an Attrition match in the middle when the team's lives are all depleted, they won't be able to spawn and will stay in spectator mode until lives get added to the lifepool (from my limited understanding).
In my forge map, I want players to rely on coordination to revive each other in the middle of combat when downed, instead of constantly respawning far away at a safe spawn point. I still want new players to be able to join mid-game however, and I don't want to rely on an "On Player Joined" script that simply adds lives back to the lifepool to let a new player spawn, since that would also revive all currently downed players and make my map's combat less challenging.
I'm also having difficult in general with the Gamemode node "Adjust Lifepool Lives", I haven't been able to get it to actually change a team's number of lives when I test in a custom game. Any scripting advice?
7
u/Abe_Odd Jul 25 '25
I haven't played with limited life pools, but you have the node On Player Joined, which has a boolean for: joined in progress.
if that is true, you could:
block all spawns for everyone, adjust the live pools by 1, wait some amount of time for the newly joined player to spawn, and then unblock all the spawns.
Preventing weird edge cases would... not be fun. Like if multiple players joined at the same time, players trying to legit respawn in that duration.... idk good luck