Verse Library verse

03 Option

Defines a custom creative device class with editable properties and event overrides for game logic.

extracted-snippets/documentation/en-us/uefn/verse-language-quick-reference/03-option.verse

# Source URL: https://dev.epicgames.com/documentation/en-us/uefn/verse-language-quick-reference
# Local doc:  epic-docs/documentation/en-us/uefn/verse-language-quick-reference.md
# Section:    Option
# WARNING: Epic's page marks this snippet as click-to-expand. Only the preview portion was captured by the crawler — the full body is NOT in the markdown.
my_device := class<concrete>(creative_device):
    var SavedPlayer : ?player = false # unset optional value

    @editable
    PlayerSpawn : player_spawner_device = player_spawner_device{}

    @editable
    Trigger : trigger_device = trigger_device{}

    OnBegin<override>() : void =

Comments

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