How to attach spectator camera to another player in MP game?

In a typical MP game, when a player is down and waiting for respawn there is an option to spectate what another player on the same team is doing, and switch between different teammates point of view. Typically you cannot control the spectating camera location, because it’s bound to player you are spectating, but you can rotate it around.

I cannot figure out how to make it in unreal.