Verse Library verse

01 Using Omega Synthesizer In Verse

Instantiates and controls the Omega Synthesizer device, toggling it on and off after delays.

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

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

Comments

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