# Source URL: https://dev.epicgames.com/documentation/en-us/uefn/modify-and-run-your-first-verse-program-in-unreal-editor-for-fortnite
# Local doc: epic-docs/documentation/en-us/uefn/modify-and-run-your-first-verse-program-in-unreal-editor-for-fortnite.md
# Section: Modify the Program
using { /Fortnite.com/Devices }
using { /Verse.org/Simulation }
using { /UnrealEngine.com/Temporary/Diagnostics }
# See https://dev.epicgames.com/documentation/en-us/uefn/create-your-own-device-in-verse for how to create a verse device.
# A Verse-authored creative device that can be placed in a level
hello_world_device := class(creative_device):
# Runs when the device is started in a running game
OnBegin<override>()<suspends>:void=
# TODO: Replace this with your code
Print("Hello, world!")
Print("2 + 2 = {2 + 2}")
Print("This is my first line of Verse code!")
Verse Library
verse
01 Modify The Program
Prints initialization messages when placed and started in a UEFN level.
extracted-snippets/documentation/en-us/uefn/modify-and-run-your-first-verse-program-in-unreal-editor-for-fortnite/01-modify-the-program.verse