Verse Library verse

01 Fragment

Initializes class designer and selector devices to manage player hero class assignments at game start.

verse-library/class-designer-device/01-fragment.verse

using { /Fortnite.com/Devices }

# This is our main script file.
# It connects to the devices in our world.

builder_class := class_designer_device:Find("Builder")
# This finds the first Class Designer we made.

sniper_class := class_designer_device:Find("Sniper")
# This finds the second Class Designer.

selector := class_selector_device:Find("MainSelector")
# This finds our Class Selector device.

OnBegin<override>()<suspends>: void =>
    # This runs when the game starts.
    
    print("Welcome to Class Battle!")
    # This prints a message in the debug log.
    
    # We can now use these variables in other events.
    # For example, we could change colors when a class is picked.

Comments

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