# This is a Verse script. Think of it as the "brain" of your device.
# It runs on the server, so every player sees the same result.
using { /Fortnite.com/Devices }
using { /Fortnite.com/Characters }
# 1. Define the "Container" for our script.
# This is like a container in Fortnite Creative that holds your devices.
SideScrollerArena := class(creative_device):
# 2. Define the Devices we will use.
# These are the "Leaves" on our Scene Graph tree.
TriggerZone := trigger_volume_device
SideControls := side_scroller_controls_device
# 3. The "On Begin" function.
# This runs ONCE when the game starts.
OnBegin<override>()<suspends>: void =
# 4. Set up the "Listener".
# We want to know when a player enters the TriggerZone.
# This is like setting a trap that only triggers for players.
TriggerZone.RegisterForBegin_overlap(Self)
# 5. The "Loop".
# This keeps the script running, waiting for events.
loop:
# 6. Wait for the "BeginOverlap" event.
# This pauses the script until a player steps into the zone.
# Think of this like waiting for the storm to shrink before you move.
await TriggerZone.OnBeginOverlap
Verse Library
verse
01 Device
Defines a side-scroller arena that locks player rotation when they enter a designated trigger volume.
verse-library/using-side-scroller-controls-devices-in-fortnite-creative/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.