VerseIsland
FeedLearnLeaderboardGuidesReferenceExploreSearchDocsVerse Library
Sign in
Feed Learn 📖 Codex Leaderboard Guides Reference Explore Search Docs Verse Library
Browse Community Snippets›Devices·Up to Community Snippets · Devices·41 of 70 in Devices

Button Combo Lock Puzzle

Button Combo Lock

A press-the-buttons-in-order puzzle. Correct sequence fires a trigger; any wrong press resets progress.

Original, compile-verified Verse by Bizanator (Biloxi Studios). Clean-room sample you can drop into a UEFN project and adapt.

  • # Button Combo Lock — Biloxi Studios Inc.
    #
    # A "press the buttons in the right order" puzzle. Players press a set of buttons;
    # if they enter the correct sequence, a trigger fires (open a door, spawn loot,
    # etc.). Any wrong press resets their progress. Each button knows its own id via a
    # small per-button handler object.
    #
    # Teaches: per-button handler objects carrying state, tracking ordered progress in
    # a single index, comparing against a configurable solution, resetting on error,
    # and firing a trigger on success.
    #
    # Setup:
    #   * Buttons holds the button_device(s).
    #   * Solution lists the button INDICES (into Buttons) in the required press order,
    #     e.g. array{2, 0, 1} means "press button 2, then 0, then 1".
    
    using { /Fortnite.com/Devices }
    using { /Verse.org/Simulation }
    using { /UnrealEngine.com/Temporary/Diagnostics }
    
    log_button_combo_lock := class(log_channel){}
    
    # One per button; remembers which button index it represents.
    combo_button_handler := class():
        ButtonId : int
        Lock : button_combo_lock

You're reading a preview

The full reference is free for BrainDeadGuild Discord members — sign in to read it all, or open the original at the source.

Sign in with Discord — free for members Read the original at Epic Games documentation

Sign in with your BrainDead.TV / BrainDeadGuild Discord account for full access.

Guided course

Add this to your free study plan — we’ll suggest related material and stitch it into one compile-checked lesson.

Keep exploring
More in Devices · 41 of 70
Prev
fortnite signal remote to triggers
Next
fortnite linked list device

Source

Epic Games documentation

Bizanator

MIT

View original
VerseIsland· an archipelago of Verse & UEFN knowledge
🗺️ Island atlasLearnGuidesHistoryAbout & PressSources & LicensingPrivacy PolicyTermsStatus

Not affiliated with Epic Games. Fortnite, UEFN, Unreal Engine, and Verse are trademarks of Epic Games, Inc. Content is attributed to its source — see Sources & Licensing.

🦜

Scout · your island guide

The Isle of Verse