Verse Library verse

01 Using Drum Sequencer In Verse

Toggles the Patchwork Drum Sequencer on and off after delays. Use to automate drum track playback.

extracted-snippets/documentation/en-us/fortnite-creative/using-patchwork-drum-sequencer-devices-in-fortnite-creative/01-using-drum-sequencer-in-verse.verse

# Source URL: https://dev.epicgames.com/documentation/en-us/fortnite-creative/using-patchwork-drum-sequencer-devices-in-fortnite-creative
# Local doc:  epic-docs/documentation/en-us/fortnite-creative/using-patchwork-drum-sequencer-devices-in-fortnite-creative.md
# Section:    Using Drum Sequencer in Verse
using { /Fortnite.com/Devices }

using { /Verse.org/Simulation }

using { /UnrealEngine.com/Temporary/Diagnostics }

# A Verse-authored creative device that can be placed in a level

drum_sequencer_example := class(creative_device):

    @editable

    DrumSequencer:patchwork_drum_sequencer_device = patchwork_drum_sequencer_device{}

    # Runs when the device is started in a running game

    OnBegin<override>()<suspends>:void=

        

        Sleep(5.0)

        DrumSequencer.Disable()

        Print("Device Disabled")

        Sleep(5.0)

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.

Sign in with Discord

Comments

    Sign in to vote, comment, or suggest an edit. Sign in