Verse Library verse

02 The Transform Of The Npc S Starting Position On Th

Extends the gameboard class with an opening cinematic, completion event, and a helper method for calculating NPC spawn transforms.

extracted-snippets/documentation/fortnite/verse-starter-02-defining-boards-for-the-game-in-unreal-editor-for-fortnite/02-the-transform-of-the-npc-s-starting-position-on-th.verse

# Source URL: https://dev.epicgames.com/documentation/fortnite/verse-starter-02-defining-boards-for-the-game-in-unreal-editor-for-fortnite
# Local doc:  epic-docs/documentation/fortnite/verse-starter-02-defining-boards-for-the-game-in-unreal-editor-for-fortnite.md
# Section:    The transform of the NPC's starting position on this board.
# This class represents the gameboard and how it behaves.
# This class has the concrete specifier so it can be an editable property on a Verse device.
gameboard<public> := class<concrete>:

    # The size of each tile on the gameboard. By default set to
    # the default Fortnite tile size of 512x512x384.
    @editable
    TileSize<public>:vector3 = vector3{X:=512.0, Y:=512.0, Z:=384.0}

    # The fixed point camera that provides a top-down view of the gameboard
    @editable
    Camera:gameplay_camera_fixed_point_device = gameplay_camera_fixed_point_device{}

    # The trigger device the NPC needs to activate to complete the board.
    @editable
    EndGoal:trigger_device = trigger_device{}

    # The array of obstacles for this gameboard.
    @editable
    Obstacles:[]obstacle = array{}

    # The transform of the NPC's starting position on this board.
    @editable
    var StartingCharacterPosition<public>:creative_prop = creative_prop{}

    @editable
    OpeningCinematic:cinematic_sequence_device = cinematic_sequence_device{}

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