Verse Library verse

02 Device

Defines a custom creative device to manage team assignments, player spawns, item grants, and teleporters.

verse-library/triad-infiltration-01-setting-up-the-level-in-verse/02-device.verse

using { /Fortnite.com/Devices }
using { /Fortnite.com/Teams }
using { /Fortnite.com/Game }

# We define a class for our custom device.
# This is like creating a new type of "Super Button" that does complex stuff.
TriadCommandCenter := class(creative_device):

    # EXPOSED VARIABLES:
    # These appear in the UEFN panel on the right.
    # You drag and drop the actual devices from your level into these slots.
    # Think of this as labeling the wires in your office building.
    Red_Team_Setting : class_and_team_selector_device = class_and_team_selector_device{}
    Blue_Team_Setting : class_and_team_selector_device = class_and_team_selector_device{}
    Green_Team_Setting : class_and_team_selector_device = class_and_team_selector_device{}

    Red_Spawn : player_spawner_device = player_spawner_device{}
    Blue_Spawn : player_spawner_device = player_spawner_device{}
    Green_Spawn : player_spawner_device = player_spawner_device{}

    Red_Grant : item_granter_device = item_granter_device{}
    Blue_Grant : item_granter_device = item_granter_device{}
    Green_Grant : item_granter_device = item_granter_device{}

    Red_Tele : teleporter_device = teleporter_device{}
    Blue_Tele : teleporter_device = teleporter_device{}
    Green_Tele : teleporter_device = teleporter_device{}

    # This event fires when the game starts (the bus launches).
    OnBegin<override>()<suspends>: void =

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