Table of Contents

Class MetalKeycardPickup

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

Represents the Metal Custom Keycard.

public class MetalKeycardPickup : CustomKeycardPickup, IWrapper<ItemPickupBase>, IWorldSpace, IPosition, IRotation, IWrapper<KeycardPickup>, INameTagKeycard, ILabelKeycard, IWearKeycard, ISerialNumberKeycard
Inheritance
MetalKeycardPickup
Implements
IWrapper<ItemPickupBase>
IWrapper<KeycardPickup>
Inherited Members
Extension Methods

Properties

Label

Gets or sets the label of this CustomKeycardItem.

public string Label { get; set; }

Property Value

string

LabelColor

Gets or sets the UnityEngine.Color of this CustomKeycardItem.

public Color LabelColor { get; set; }

Property Value

Color

NameTag

Gets or sets the name of the owner of this CustomKeycardItem.

public string NameTag { get; set; }

Property Value

string

SerialNumber

Gets or sets the serial number of this CustomKeycardItem.

public string SerialNumber { get; set; }

Property Value

string

Remarks

Can only hold 12 numbers. Non-numerical chars will be replaced with "-".

Wear

Gets or sets the wear on this CustomKeycardItem.

public byte Wear { get; set; }

Property Value

byte

Remarks

Capped from 0-5 for Site-02 keycards, returns 255 if no wear level is found.

Methods

Create(KeycardLevels, Color, string, Color, string, string, Color, byte, string)

Creates a MetalKeycardPickup.

public static MetalKeycardPickup Create(KeycardLevels keycardLevels, Color permissionsColor, string itemName, Color color, string nameTag, string label, Color labelColor, byte wear, string serialNumber)

Parameters

keycardLevels KeycardLevels

The permissions of the keycard.

permissionsColor Color

The color of the permissions of the keycard.

itemName string

The inventory name of the keycard.

color Color

The color of the keycard.

nameTag string

The name of the owner of the keycard.

label string

The label on the keycard.

labelColor Color

The color of the label on the keycard.

wear byte

How worn the keycard looks (capped from 0-5).

serialNumber string

The serial number of the keycard (numbers only, 12 max).

Returns

MetalKeycardPickup

The new MetalKeycardPickup.