Table of Contents

Class SingleUseKeycardPickup

Namespace
Exiled.API.Features.Pickups.Keycards
Assembly
Exiled.API.dll

A base class for all keycard pickups.

public class SingleUseKeycardPickup : KeycardPickup, IWrapper<ItemPickupBase>, IWorldSpace, IPosition, IRotation, IWrapper<KeycardPickup>
Inheritance
SingleUseKeycardPickup
Implements
IWrapper<ItemPickupBase>
IWrapper<KeycardPickup>
Inherited Members
Extension Methods

Properties

AllowClosingDoors

Gets or sets a value indicating whether the Keycard allow the closing of Doors.

public bool AllowClosingDoors { get; set; }

Property Value

bool

Permissions

Gets or sets the KeycardPermissions of the keycard.

public override KeycardPermissions Permissions { get; set; }

Property Value

KeycardPermissions

TimeToDestroy

Gets or sets the time delay to destroy the Keycard after being used.

public float TimeToDestroy { get; set; }

Property Value

float

Uses

Gets or sets the amount of uses remaining on the keycard.

public int Uses { get; set; }

Property Value

int

Remarks

Multiple uses can look strange for clients (they'll run the discard animation, but can reselect the keycard)

Setting this to 0 or lower will destroy the keycard.

Methods

InitializeProperties(ItemBase)

initialize item properties.

protected override void InitializeProperties(ItemBase itemBase)

Parameters

itemBase ItemBase

target item.

ToString()

Returns the Keycard in a human readable format.

public override string ToString()

Returns

string

A string containing Keycard-related data.