Verse Library verse

11 Playing The Cinematic

Defines a suspending function to log events, play cinematics, and interact with door devices.

extracted-snippets/documentation/en-us/uefn/change-a-players-point-of-view-with-cameras-in-unreal-editor-for-fortnite/11-playing-the-cinematic.verse

# Source URL: https://dev.epicgames.com/documentation/en-us/uefn/change-a-players-point-of-view-with-cameras-in-unreal-editor-for-fortnite
# Local doc:  epic-docs/documentation/en-us/uefn/change-a-players-point-of-view-with-cameras-in-unreal-editor-for-fortnite.md
# Section:    Playing the Cinematic
# Plays a cinematic and unlocks the door.
PlayCinematic(Agent:agent)<suspends>:void=
Logger.Print("Player is holding item, playing cinematic...")
CinematicSequence.Play()
# Unlock the door, then open it.
Door.Unlock(Agent)
Door.Open(Agent)
set IsDoorOpen = true

Comments

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