# This is our main script.
# It connects the launcher to the game.
using { /Fortnite.com/Devices }
# This is the launcher device.
# We give it a name: LaunchPad.
LaunchPad: D_LauncherDevice = D_LauncherDevice{}
# This is the event that fires.
# It fires when a player is launched.
OnLaunch := func(event: LaunchPad.LaunchedEvent):
# This runs when a player flies!
# We can add more code here later.
print("Player launched!")
# This sets up the connection.
# When LaunchPad launches someone,
# run the OnLaunch function.
LaunchPad.LaunchedEvent += OnLaunch
Verse Library
verse
01 Fragment
Subscribes to a D-Launcher device event to run custom code whenever a player is launched into the air.
verse-library/using-d-launcher-devices-in-fortnite-creative/01-fragment.verse