Verse Library verse

01 Device

Displays rules on a billboard and activates lighting when the game starts.

verse-library/designer-s-tips/01-device.verse

# This is a simple script to help you organize your lobby.
# In Verse, devices are placed in UEFN and then referenced here.
# We bind each placed device to a variable so we can configure it.

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

# This class represents your lobby manager.
# Place each device in UEFN, then assign it in the Details panel.
lobby_manager := class(creative_device):

    # Step 1: Bind the billboard device placed in your UEFN scene.
    # Think of this as a whiteboard for players.
    @editable
    Rule_Sign : billboard_device = billboard_device{}

    # Step 2: Bind a customizable light device placed in your UEFN scene.
    # This helps players see the rules clearly.
    @editable
    Lamp_Light : customizable_light_device = customizable_light_device{}

    # OnBegin runs automatically when the game starts.
    OnBegin<override>()<suspends> : void =

        # Step 3: Set the billboard text to be short and clear.
        # Use simple words. Keep it under 10 words if possible.
        Rule_Sign.SetText(StringToMessage("Hit Targets. Win Points."))
        # note: billboard_device.SetText accepts a message value; StringToMessage converts a string literal.

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