One of the more complex blueprints, dealing with a music puzzle the player must solve.
 The script checks which button the player is pressing, disables input on that button, plays a sound cue and checks the order it is pressed against a defined boolean.
 The script then adds or subtracts from a float, depending on the result of the boolean, and then plays a short animation of the button being pressed.
 Finally, once all buttons are pressed, the script checks the final float against a predefined value. If it matches, the full song plays then unlocks an upstairs door, else it plays a "wrong" cue then resets the puzzle.
prev / next