Table of Contents

Class TaskForceKeycardPickup

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

Represents the Task Force Custom Keycard.

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

Properties

NameTag

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

public string NameTag { get; set; }

Property Value

string

Rank

Gets or sets the rank of this CustomKeycardItem.

public byte Rank { get; set; }

Property Value

byte

Remarks

Capped from 0-3, returns 255 if no value was found.

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 "-".

Methods

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

public static TaskForceKeycardPickup Create(KeycardLevels keycardLevels, Color permissionsColor, string itemName, Color color, string nameTag, string serialNumber, byte rank)

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.

serialNumber string

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

rank byte

The rank of the keycard (capped from 0-3).

Returns

TaskForceKeycardPickup

The new TaskForceKeycardPickup.