Verse Library verse

01 Standalone

References a hover platform device and sets its mesh color to blue on game start.

verse-library/using-hover-platform-devices-in-fortnite-creative/01-standalone.verse

# This is a simple Verse script.
# It makes a Hover Platform glow when played.

using { /Fortnite.com/Devices }
using { /Verse.org/Sim }

# This is our platform device.
Hover := struct {
    # This connects to the device in the editor.
    Platform : HoverPlatformDevice
}

# This runs when the game starts.
main := @entry() : unit => {
    # Get the platform from the editor.
    my_platform := Hover{}

    # Make the platform glow blue.
    # This helps players see it in the dark.
    my_platform.Platform.SetColor(Blue)
}

Comments

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