# This is a comment. It is for humans only.
# The computer ignores it.
# We are setting up the game rules.
# Think of this as writing the rulebook.
#
# Island-wide options like max players, team type, team size,
# and spawn strategy are configured in the IslandSettings device
# inside the UEFN editor Details panel — not through Verse API
# calls. The Verse class below shows how you would hold a
# typed reference to that device and read its values in code.
using { /Fortnite.com/Devices }
using { /Verse.org/Simulation }
using { /UnrealEngine.com/Temporary/Diagnostics }
# island_setup is a Verse device you can place in your level.
# It does not replace the IslandSettings device; it works
# alongside it to print the active rule choices at game start.
island_setup := class(creative_device):
# OnBegin runs once when the experience starts.
OnBegin<override>()<suspends> : void =
# Log a message to the Output Log for debugging.
Print("Island setup complete.")
# Spawn strategy is set in the IslandSettings Details
# panel (Near Teammates). There is no Verse getter for
# it, so no call is needed here. # Players spawn close to friends.
Verse Library
verse
01 Device
Initializes island setup state and logs a completion message when the game begins.
verse-library/1-creating-a-new-project/01-device.verse