Class DoorsDoorOpenEvent<RoomType>

Emitted when a door is opened either by a player opening it manually, i.e. the doors on Polus, or opened automatically after some time, i.e. the doors on The Skeld.

Type Parameters

Hierarchy

  • RevertableEvent
    • DoorsDoorOpenEvent

Implements

Properties

eventName: "doors.open"
door: Door<RoomType>

The door that the player opened.

doorsystem: AutoDoorsSystem<RoomType> | DoorsSystem<RoomType> | ElectricalDoorsSystem<RoomType>

The door system that the door is in.

eventName: "doors.open"
message: undefined | RepairSystemMessage

The message that this event originated from.

player: undefined | PlayerData<RoomType>

The player that opened the door. Only available if the client is the host.

reverted: boolean
room: RoomType

The room or client that the event came from.

Accessors

  • get alteredDoor(): Door<RoomType>
  • The alternate door that will be opened, if changed.

    Returns Door<RoomType>

Constructors

Methods

  • Returns void

  • Change the door that was opened.

    Parameters

    • door: number | Door<RoomType>

      The door to open.

    Returns void

Generated using TypeDoc