Verse Library verse

01 Device

Coordinates game states, camera switching, and signals for a party mini-game.

verse-library/fortnite-making-party-minigames-using-cameras-and-verse/01-device.verse

# PartyGameManager.verse
# This script acts as the "Referee" for our mini-game.
# It handles starting the round, switching the camera, and ending the round.

using { /Fortnite.com/Devices }
using { /Verse.org/Simulation }
using { /UnrealEngine.com/Temporary/Diagnostics }

# We define a "Game Manager" class. 
# Think of this as the blueprint for our Referee.
# creative_device is the base class for all Verse devices placed in the UEFN editor.
party_game_manager := class(creative_device):

    # These are "Editable Objects" - properties you can change in the editor
    # without touching the code. 
    # lobby_trigger: Detects when players are in the voting area.
    # game_trigger: Detects when players are in the game area.
    # fixed_camera: The camera device we want to activate.
    # start_signal: The signal that says "Vote is done, start the game!"
    # end_signal: The signal that says "Time's up, game over!"

    @editable
    lobby_trigger : trigger_device = trigger_device{}

    @editable
    game_trigger : trigger_device = trigger_device{}

    @editable
    fixed_camera : gameplay_camera_fixed_point_device = gameplay_camera_fixed_point_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