How do you make a spawn room and respawn room change after a point is capped

BiiigSip

L1: Registered
Jul 22, 2019
31
4
Hello I'm trying to add a second spawn room to my Payload map.

Here is what I'm trying to do:
Red has two spawn rooms, 1: the Initial Spawn, and 2: the Last Spawn. i want it so that red at the start of the match spawns in the 1st spawn room but after blue caps the 1st point they move back to the 2nd spawn room and the 1st spawn room becomes disabled, how do i do this. i tried looking up tutorials but i couldn't find anything

I have made a second spawn room but i don't know what logic i need to make it work
 
T

The Asylum

All a spawnroom needs to change team alignment is a SetOwner command. A parameter override of 0 will make a spawnroom neutral, 2 for RED, and 3 for BLU