using { /Fortnite.com/Devices }
using { /UnrealEngine.com/Temporary/Diagnostics }
# This is our glowing beacon device
# It inherits from a basic device
BeaconDevice := class(creative_device):
# This variable holds the light intensity
# It is a float, which means a decimal number
var glow_strength: float = 1.0
# This function runs when the game starts
OnBegin<override>()<suspends>: void =
# Let's make the beacon glow brighter!
# We change the variable we defined above
set glow_strength = 2.5
# In Verse, we might trigger a visual effect here.
# For example, we could tell a Particle System to start.
# But for now, let's just log that we are ready.
Print("Beacon is now glowing super bright!")
Verse Library
verse
01 Device
Initializes a beacon device that increases light intensity and logs readiness at game start.
verse-library/rendering-features/01-device.verse