# This is the main script for our jetpack challenge.
# It runs when the island starts.
using { /Fortnite.com/Devices }
using { /Fortnite.com/Characters }
using { /Fortnite.com/FortPlayerUtilities }
using { /Verse.org/Simulation }
using { /UnrealEngine.com/Temporary/Diagnostics }
# This is our "Brain" object.
# It holds all our logic.
jetpack_zone_manager := class(creative_device):
# This is a reference to the Trigger Device placed on the island.
# Drag a Trigger device onto this property in the UEFN editor.
@editable
ZoneTrigger : trigger_device = trigger_device{}
# This variable tracks the timer.
# It counts down from 5 seconds.
Timer : float = 5.0
# This is the "Start" function.
# It runs when the game begins.
OnBegin<override>()<suspends> : void =
# We wait for the zone trigger to activate.
# When a player enters, 'OnPlayerEnter' runs.
# We link that event here.
ZoneTrigger.TriggeredEvent.Subscribe(OnPlayerEnter)
Verse Library
verse
01 Device
Activates a timed jetpack challenge when a player enters a specific trigger zone.
verse-library/using-travel-items-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.