# This is our Verse script.
# It lives on a device in your island.
using { /Fortnite.com/Devices }
# Step 1: Create a Class
# A class is like a blueprint for a new device.
# It holds all our settings and code.
RoundController := class(creative_device):
# Step 2: Define Variables
# A variable is a box that holds data.
# Here, we hold the Timer Device.
@editable RoundTimer : timer_device = timer_device{}
# Step 3: The Start Function
# This runs when the game begins.
OnBegin<override>()<suspends> : void =
# Start the timer counting down.
RoundTimer.Start()
# Wait here until the timer is done.
# The game pauses here for the countdown.
RoundTimer.SuccessEvent.Await()
# Step 4: Do something when time is up!
# Send a signal to open the barriers.
# This is the "Go!" signal.
# note: Pulse() fires the on-success pulse channel that
# barrier devices can listen to via their Receive Signal
Verse Library
verse
01 Device
Starts a countdown and signals when the round phase ends.
verse-library/using-the-timer-device-to-count-down-and-create-rounds/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.