Table of Contents

Class KeycardInteractingEventArgs

Namespace
Exiled.Events.EventArgs.Item
Assembly
Exiled.Events.dll

Contains all information before a keycard interacts with a door.

public class KeycardInteractingEventArgs : IPlayerEvent, IDeniableEvent, IDoorEvent, IPickupEvent, IExiledEvent
Inheritance
KeycardInteractingEventArgs
Implements
Inherited Members
Extension Methods

Constructors

KeycardInteractingEventArgs(KeycardPickup, Player, DoorVariant, bool)

Initializes a new instance of the KeycardInteractingEventArgs class.

public KeycardInteractingEventArgs(KeycardPickup pickup, Player player, DoorVariant door, bool isAllowed = true)

Parameters

pickup KeycardPickup
player Player
door DoorVariant
isAllowed bool

Properties

Door

Gets the Door instance.

public Door Door { get; }

Property Value

Door

IsAllowed

Gets or sets a value indicating whether the keycard can interact with the door.

public bool IsAllowed { get; set; }

Property Value

bool

KeycardPickup

Gets the item that's interacting with the door.

public KeycardPickup KeycardPickup { get; }

Property Value

KeycardPickup

Pickup

Gets the item that's interacting with the door.

public Pickup Pickup { get; }

Property Value

Pickup

Player

Gets the player who's threw the keycard.

public Player Player { get; }

Property Value

Player