using { /Fortnite.com/Devices }
using { /Verse.org/Simulation }
# This Verse device holds references to the Patchwork devices
# placed in the UEFN editor and wired together there.
patchwork_controller := class(creative_device):
# This is the sound device. It makes the noise.
# Drag your Patchwork Speaker into this slot in the editor.
@editable
Speaker : patchwork_speaker_device = patchwork_speaker_device{}
# This is the magic knob. It changes values.
# Drag your Patchwork LFO Modulator into this slot in the editor.
@editable
LFO : patchwork_lfo_device = patchwork_lfo_device{}
OnBegin<override>()<suspends> : void =
# Connect the LFO to the Speaker's volume.
# Now the volume will change on its own!
# note: Patchwork signal routing is primarily done in the
# UEFN editor's Patchwork panel by drawing cables between
# the LFO output port and the Speaker volume input port.
# The code below sets properties on each device to configure
# the swell behaviour after the editor cable is in place.
# Set the LFO speed.
# Low speed = slow swell. High speed = fast wobble.
# Rate of 0.5 means one cycle every two seconds.
LFO.SetRate(0.5)
Verse Library
verse
01 Device
Configures a modulator to dynamically change speaker volume for ambient or moving music effects.
verse-library/using-patchwork-lfo-modulator-devices-in-fortnite-creative/01-device.verse
Sign in free to read the full source 🌴
This Verse Library file is members-only. Create a free account to view the complete source and download the .verse file.