Verse Library verse

06 Complete Script

Defines a custom device managing cameras, screens, and UI for the game intro sequence.

extracted-snippets/documentation/en-us/uefn/title-sequence-1-coding-verse-device-in-unreal-editor-for-fortnite/06-complete-script.verse

# Source URL: https://dev.epicgames.com/documentation/en-us/uefn/title-sequence-1-coding-verse-device-in-unreal-editor-for-fortnite
# Local doc:  epic-docs/documentation/en-us/uefn/title-sequence-1-coding-verse-device-in-unreal-editor-for-fortnite.md
# Section:    Complete Script
using { /Fortnite.com/Characters }
using { /Fortnite.com/Devices }
using { /UnrealEngine.com/Temporary/Diagnostics }
using { /Verse.org/Simulation }

title_sequence := class(creative_device):

    # Game camera to show splash screens on top of.
    @editable
    SplashScreenGameCamera:gameplay_camera_fixed_point_device = gameplay_camera_fixed_point_device{}

    # Game camera to show game title on top of.
    @editable
    TitleGameCamera:gameplay_camera_fixed_point_device = gameplay_camera_fixed_point_device{}

    # Dialog option for player to choose to start the game.
    @editable
    StartGameDialog:popup_dialog_device = popup_dialog_device{}

    # Game title screen to display.
    @editable
    TitleScreen:hud_message_device = hud_message_device{}

    # How long the title screen should be shown before the game menu appears.
    @editable
    GameMenuDelay:float = 2.5

Sign in free to read the full source 🌴

This Verse Library file is members-only. Create a free account to view the complete source and download the .verse file.

Sign in with Discord

Comments

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