Class CustomArmor
- Namespace
- Exiled.CustomItems.API.Features
- Assembly
- Exiled.CustomItems.dll
The Custom Armor base class.
public abstract class CustomArmor : CustomItem
- Inheritance
-
CustomArmor
- Inherited Members
- Extension Methods
Properties
HelmetEfficacy
Gets or sets how strong the helmet on the armor is.
public virtual int HelmetEfficacy { get; set; }
Property Value
StaminaUseMultiplier
Gets or sets how much faster stamina will drain when wearing this armor.
public virtual float StaminaUseMultiplier { get; set; }
Property Value
Type
Gets or sets the ItemType to use for this armor.
public override ItemType Type { get; set; }
Property Value
- ItemType
VestEfficacy
Gets or sets how strong the vest on the armor is.
public virtual int VestEfficacy { get; set; }
Property Value
Methods
Give(Player, bool)
Gives the CustomItem to a player.
public override void Give(Player player, bool displayMessage = true)
Parameters
player
PlayerThe Player who will receive the item.
displayMessage
boolIndicates whether ShowPickedUpMessage(Player) will be called when the player receives the item.
SubscribeEvents()
Called after the manager is initialized, to allow loading of special event handlers.
protected override void SubscribeEvents()
UnsubscribeEvents()
Called when the manager is being destroyed, to allow unloading of special event handlers.
protected override void UnsubscribeEvents()