⮞ Go to NeoFPS.com

    Show / Hide Table of Contents

    LockedDoorTrigger MonoBehaviour

    Overview

    The LockedDoorTrigger behaviour is attached to an object with a trigger collider. It will open the specified door when a character with the correct key code in their inventory key ring enters, and close it when they leave.

    Inspector

    LockedDoorTrigger

    Properties

    Name Type Description
    Lock Ids String Array An array of IDs for this lock. The player must have an equivalent key in their inventory [key ring][3] to unlock. If this is empty then the door must be unlocked via events or the API. IDs can be unique to this lock, or shared between multiple for things like skeleton keys.
    On Trigger Enter UnityEvent The event that is fired when a character enters the trigger collider.
    On Trigger Exit UnityEvent The event that is fired when a character exits the trigger collider.
    Door Door The door to open (will accept any door that inherits from DoorBase).

    See Also

    Doors

    KeyRing Behaviour

    Unity BoxCollider

    Unity SphereCollider

    Unity CapsuleCollider

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