is there a way to save the state of a switch through out rounds

I’m looking at other box fight and pvp maps and I realize when you use the switch to select a loadout that switch saves through out all the rounds but in my world I don’t really know how I can set that up