# Source URL: https://dev.epicgames.com/documentation/en-us/fortnite/using-patchwork-step-modulator-devices-in-fortnite-creative
# Local doc: epic-docs/documentation/en-us/fortnite/using-patchwork-step-modulator-devices-in-fortnite-creative.md
# Section: Using Step Modulator 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
step_modulator_example := class(creative_device):
@editable
StepModulator:patchwork_step_modulator_device = patchwork_step_modulator_device{}
# Runs when the device is started in a running game
OnBegin<override>()<suspends>:void=
Sleep(5.0)
StepModulator.Disable()
Print("Device Disabled")
Sleep(5.0)
StepModulator.Enable()
Print("Device Enabled")
Verse Library
verse
01 Using Step Modulator In Verse
Disables and re-enables a step modulator device after sequential time delays.
extracted-snippets/documentation/en-us/fortnite/using-patchwork-step-modulator-devices-in-fortnite-creative/01-using-step-modulator-in-verse.verse