DoorInteractable

Inherits from Interactable, since you can interact with the door.

You can find a Door Prefab uner Cowsins/Prefabs/DragAndDropExtras

  • openInteractionText: Text to display for interaction if the door is closed. ( Generally "Open" )

  • closeInteractionText: Text to display for interaction if the door is opened. ( Generally "Close" )

  • lockedInteractionText: Text to display for interaction if the door is Locked. ( Generally "Locked" )

  • isLocked: Whether the door should be locked.

  • doorPivot: The pivot point for the door

  • offsetPosition: "The Vector3 to add to the door on opened ( Introduced in 1.3 )

  • openedDoorRotation: How much you want to rotate the door in degrees

  • speed: rotation speed

  • openDoorSFX

  • closeDoorSFX

  • lockedDoorSFX

Functions & Accesors | DoorInteractable.cs

Lock( )

Locks the door so it cannot be opened

UnLock( )

Unlocks the door so it can be opened

ToggleLock( )

If Locked, unlocks it.

If Unlocked, locks it.

Last updated