How do I make a player go into spectate mode?

I have no idea how to make a player go into spectate mode when a certain event happens in a game (e.g. knocked out). How do you achieve this?

All you need is a Knockout Manager Device, and a Team Switcher Device.

Open up the Team Switcher. Set the Switch Strategy setting to Specific Team and the Team setting to Spectators.

Wire the KO Manager to the Team Switcher. Check the only two boxes, and you should be good!