Table of Contents

Class HumanRole

Namespace
Exiled.API.Features.Roles
Assembly
Exiled.API.dll

Defines a role that represents a human class.

public class HumanRole : FpcRole, IWrapper<PlayerRoleBase>, IVoiceRole
Inheritance
HumanRole
Implements
IWrapper<PlayerRoleBase>
Inherited Members
Extension Methods

Properties

Base

Gets the game PlayerRoles.HumanRole.

public HumanRole Base { get; }

Property Value

HumanRole

Type

Gets the PlayerRoles.RoleTypeId of this Player.

public override RoleTypeId Type { get; }

Property Value

RoleTypeId

UnitName

Gets the player's unit name.

public string UnitName { get; }

Property Value

string

UnitNameId

Gets or sets the UnitNameId.

public byte UnitNameId { get; set; }

Property Value

byte

UsesUnitNames

Gets a value indicating whether the HumanRole uses unit names or not.

public bool UsesUnitNames { get; }

Property Value

bool

Methods

GetArmorEfficacy(HitboxType)

Gets the HumanRole armor efficacy based on a specific HitboxType and the armor the Owner is wearing.

public int GetArmorEfficacy(HitboxType hitbox)

Parameters

hitbox HitboxType

The HitboxType.

Returns

int

The armor efficacy.