Class HumanRole
Defines a role that represents a human class.
Implements
IWrapper<PlayerRoles.PlayerRoleBase>
Inherited Members
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetType()
System.Object.MemberwiseClone()
Namespace: Exiled.API.Features.Roles
Assembly: Exiled.API.dll
Syntax
public class HumanRole : FpcRole, IWrapper<PlayerRoleBase>
Properties
| Improve this Doc View SourceBase
Gets the game PlayerRoles.HumanRole.
Declaration
public HumanRole Base { get; }
Property Value
Type | Description |
---|---|
PlayerRoles.HumanRole |
SpawnableTeamType
Gets or sets the SpawnableTeamType.
Declaration
public SpawnableTeamType SpawnableTeamType { get; set; }
Property Value
Type | Description |
---|---|
Respawning.SpawnableTeamType |
Type
Declaration
public override RoleTypeId Type { get; }
Property Value
Type | Description |
---|---|
PlayerRoles.RoleTypeId |
Overrides
| Improve this Doc View SourceUnitName
Gets the player's unit name.
Declaration
public string UnitName { get; }
Property Value
Type | Description |
---|---|
System.String |
UnitNameId
Gets or sets the UnitNameId.
Declaration
public byte UnitNameId { get; set; }
Property Value
Type | Description |
---|---|
System.Byte |
UsesUnitNames
Gets a value indicating whether the HumanRole uses unit names or not.
Declaration
public bool UsesUnitNames { get; }
Property Value
Type | Description |
---|---|
System.Boolean |
Methods
| Improve this Doc View SourceGetArmorEfficacy(HitboxType)
Gets the HumanRole armor efficacy based on a specific HitboxType and the armor the Owner is wearing.
Declaration
public int GetArmorEfficacy(HitboxType hitbox)
Parameters
Type | Name | Description |
---|---|---|
HitboxType | hitbox | The HitboxType. |
Returns
Type | Description |
---|---|
System.Int32 | The armor efficacy. |