⮞ Go to NeoFPS.com

    Show / Hide Table of Contents

    KeypadInteractiveObject MonoBehaviour

    Overview

    The KeypadInteractiveObject behaviour is an extension of the InteractiveObject that can be used alongside locked doors. On using the object it displays a keypad popup, and if the player enters the correct key code then the door will be unlocked.

    Inspector

    KeypadInteractiveObject

    Properties

    The DoorInteractiveObject inherits from the InteractiveObject. Check the reference for information on its properties.

    Name Type Description
    Tooltip Name String The name of the item in the HUD tooltip.
    Tooltip Action String A description of the action for use in the HUD tooltip, eg pick up.
    Interactable On Start Boolean Can the object be interacted with immediately.
    Hold Duration Float How long does the use button have to be held for interaction.
    On Used UnityEvent An event that is triggered when the object is used.
    On Cursor Enter UnityEvent An event that is triggered when the player looks directly at the object.
    On Cursor Exit UnityEvent An event that is triggered when the player looks away from the object.
    Door Door The door to open (will accept any door that inherits from DoorBase).
    m_KeypadPopup KeypadPopup The keypad UI popup to show.
    m_PassCode Integer Array The key code to unlock the door.
    Lock Ids String Array A unique ID for this lock. IF the player has an equivalent key in their inventory key ring then the digits will be shown with the popup.
    m_StartLocked Boolean Should the door be locked on start.

    See Also

    InteractiveObject

    KeypadPopup Behaviour

    KeyRing Behaviour

    Back to top Copyright © 2019 Yondernauts Game Studios Ltd
    Generated with DocFX