using { /Fortnite.com/Devices } using { /Fortnite.com/Devices/Patchwork } using { /Verse.org/Simulation } # This is our main script. It lives on an island. MyScript := class(creative_device): # This is the Step Modulator device. # It will change the music settings. # Place this device on your island and assign it here. @editable StepMod : step_modulator_device = step_modulator_device{} # This is the Drum Sequencer. # It makes the actual sounds. # Place this device on your island and assign it here. @editable Drums : drum_sequencer_device = drum_sequencer_device{} # This function starts everything. OnBegin() : void = # We tell the Step Modulator to begin running through its steps. # It will cycle through each step and send values to any # connected devices as wired in the UEFN editor. # note: Step Modulator device connections (target device + parameter) # are configured via editor wiring, not a SetTarget() call in Verse. StepMod.Enable() # Small pause to let the devices settle after Enable() is called. Sleep(0.1)