# This is a Verse script that listens for a button press
# and triggers a prop-mover to launch a player.
# 1. IMPORTS
# We need to import the 'Devices' library to access Button,
# Prop-Mover, and their built-in events.
using { /Fortnite.com/Devices }
using { /Verse.org/Simulation }
# 2. THE SCRIPT STRUCTURE
# This is the container for our logic.
# Think of it as the "Island" itself, but for this specific mechanic.
# In UEFN, you attach this creative_device to your Button device
# in the level, and wire the PropMover reference in the editor.
LaunchPadScript := class(creative_device):
# 3. DECLARING OUR DEVICES
# We need references to the actual devices in our level.
# In the UEFN editor, drag your Prop-Mover device into the
# 'PropMover' field that appears on this script component.
@editable
PropMover : prop_mover_device = prop_mover_device{}
@editable
RevengeButton : button_device = button_device{}
# 4. OnBegin — the entry point
# OnBegin runs automatically when the game session starts.
# This is where we subscribe to events so our code starts listening.
OnBegin<override>()<suspends> : void =
Verse Library
verse
01 Device
Defines a device script that references editor-placed devices and subscribes to button interaction events.
verse-library/events/01-device.verse
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.