Verse Library verse

13 Switching Cameras

Changes the active camera view by index and stops any currently playing camera sequence.

extracted-snippets/documentation/fortnite/verse-standup-comedy-club-template-in-unreal-editor-for-fortnite/13-switching-cameras.verse

# Source URL: https://dev.epicgames.com/documentation/fortnite/verse-standup-comedy-club-template-in-unreal-editor-for-fortnite
# Local doc:  epic-docs/documentation/fortnite/verse-standup-comedy-club-template-in-unreal-editor-for-fortnite.md
# Section:    Switching Cameras
# Switches us between camera sequences that have been specified by stopping any current ones and moving to the next appropriate one on the list.
DoCameraSwitch(Agent:agent, Value:int):void =
if (CameraSwitch := CameraSwitches[Value]):
Logger.Print("Switching Cameras to {Value}")
# Stop any currently playing other camera sequence.
if (PlayingSequence := CurrentSequence?):
PlayingSequence.Stop(Agent)

Comments

    Sign in to vote, comment, or suggest an edit. Sign in