# Source URL: https://dev.epicgames.com/documentation/en-us/fortnite/verse-standup-comedy-club-template-in-unreal-editor-for-fortnite
# Local doc: epic-docs/documentation/en-us/fortnite/verse-standup-comedy-club-template-in-unreal-editor-for-fortnite.md
# Section: Switching Cameras
# Returns us to our TV viewing mode sequence by checking where the main sequence is and aligning our playback to that point.
DoReturnToTVMode(Agent:agent):void =
Logger.Print("Return to TV Mode")
# If we are already in TV mode no need to return to it.
if (InTVMode?):
return
# If we have another camera sequence playing, stop it and clear associated values.
if (TempSeq := CurrentSequence?):
TempSeq.Stop(Agent)
set CurrentSequence = false
# Figure out where the main sequence is in its playback and start up the TV mode sequence at the same spot to provide the proper viewing experience.
CurrentSeekTime := MainSequence.GetPlaybackTime()
TVModeSequence.SetPlaybackTime(CurrentSeekTime)
TVModeSequence.Play(Agent)
set InTVMode = true
# Unregister the input triggers for returning to tv mode and register for free look.
ReturnToTVMode.Unregister(Agent)
ReturnToFreeLook.Register(Agent)
Verse Library
verse
22 Switching Cameras
Manages returning players to TV mode, syncs sequence playback time, and updates input triggers during cutscenes.
extracted-snippets/documentation/en-us/fortnite/verse-standup-comedy-club-template-in-unreal-editor-for-fortnite/22-switching-cameras.verse