- Sliding Door
- Door Frame
- Keypad
- Sounds
- HUD
- When the player walks close (5m) to the door they receive the message: "Type in key".
- When the player types in the correct combination (150) on the keypad the sliding door opens smoothly and closes again after 6 seconds.
- Keys play the beep sound when pressed.
- Door plays the door sound when moving.
- After the door opened the red element on the attached HUD turns blue.
-
Player is within 5m
- Triggered: Send player a message
-
Player first touches keypad.
- Triggered: Keys make beep sound when pressed
- Triggered: Detect 150 (link 4, 6, 11) in order with no numbers in between
- Triggered: Move door smoothly on the X axis, wait six seconds, then move door back smoothly
- Triggered: Door makes door sound while moving
- Triggered: Button on HUD turns blue
- Detect when player is within 5 meters
- Send player message "Type in key" when first entering 5 meters
- Don't send a player a message again unless it's 30 second later
- Detect when player first touches the keypad, any key
- Keys make beeps sound when pressed
- Reset code when you reach four key presses
- Detect 150 (link 4, 6, 11) in order with no numbers in between.
- Start a 30 second timer when the play first touches the keypad. If the 30 second run out:
- Send the player a message "The keypad has timed out"
- Communicate with the door that it has been unlocked
- Remove listen handler when no players are close
- Move door smoothly on the x axis, wait six seconds, then move door back smoothly
- Door makes door sound when first moving
- Button on HUD turns from red to blue
- Remember attempts by player
- Prevent spamming imputs
- Lock down the keypad after a certain amount of attempts