team specific garage door- infection

how do i make a team specific garage door? specifically i am making an infection map and want the survivor/defenders to be able to operate gates sealing off infected/attackers. i have set the garage doors, switches, timers and triggers to survivor and saved in infection mode in forge but when in custom game both can operate the gates. i haven’t tested any further but once you become infected would the game instantly recognize you as then an attacker or not til you re-spawn?