using { /Fortnite.com/Devices }
using { /Verse.org/Simulation }
using { /UnrealEngine.com/Temporary/Diagnostics }
# AMBIENT BED: play a looping atmosphere sound the moment the round starts.
#
# Place an Audio Player Device in the world, point it at a looping sound
# (a synth pad, a crowd murmur, neon buzz), and wire it into the @editable
# slot below. Because the device lives at a position in the level, the sound
# is positional/3D: it swells as players approach the speaker and fades as
# they walk away. No per-frame code — Play() once and the engine does the rest.
ambient_sound_device := class(creative_device):
# Drag your placed Audio Player Device onto this slot in the Details panel.
@editable
AmbientHum : audio_player_device = audio_player_device{}
OnBegin<override>()<suspends> : void =
# Make sure the device is live, then start its (looping) sound.
AmbientHum.Enable()
AmbientHum.Play()
Print("Ambient bed playing")
Verse Library
verse
02 Device
Starts a looping atmospheric sound when the round begins.
verse-library/verse-sound-positional/02-device.verse