Verse Library verse

01 Events

Custom creative device that temporarily disables and re-enables a note progressor device after delays.

extracted-snippets/documentation/en-us/fortnite/using-patchwork-note-progressor-devices-in-fortnite-creative/01-events.verse

# Source URL: https://dev.epicgames.com/documentation/en-us/fortnite/using-patchwork-note-progressor-devices-in-fortnite-creative
# Local doc:  epic-docs/documentation/en-us/fortnite/using-patchwork-note-progressor-devices-in-fortnite-creative.md
# Section:    Events
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
distortion_effect_example := class(creative_device):
@editable
NoteProgressor:patchwork_note_progressor_device = patchwork_note_progressor_device{}
# Runs when the device is started in a running game
OnBegin<override>()<suspends>:void=
Sleep(5.0)
NoteProgressor.Disable()
Print("Device Disabled")
Sleep(5.0)
NoteProgressor.Enable()
Print("Device Enabled")

Comments

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