# This is a comment. It is for humans only.
# The computer ignores it.
using { /Fortnite.com/Devices }
using { /Verse.org/Simulation }
using { /UnrealEngine.com/Temporary/Diagnostics }
# This line creates a new device.
# It is like building the physical box.
MyFirstDevice := class(creative_device):
# OnBegin runs automatically when the game session starts.
# It is a built-in event for every creative_device.
OnBegin<override>()<suspends> : void =
# This line sends a message to the output log.
# It is like saying "Hello!"
Print("You activated my custom device!")
Verse Library
verse
01 Device
Defines a basic creative device that prints a log message when the game session begins.
verse-library/create-your-own-device-using-verse-in-unreal-editor-for-fortnite/01-device.verse