Table of Contents

Class HumanKillObjective

Namespace
Exiled.API.Features.Objectives
Assembly
Exiled.API.dll

A wrapper for Human kill objective.

public class HumanKillObjective : HumanObjective<KillObjectiveFootprint>, IWrapper<FactionObjectiveBase>, IWrapper<HumanObjectiveBase<KillObjectiveFootprint>>, IWrapper<HumanKillObjective>
Inheritance
TypeCastObject<FactionObjectiveBase>
HumanObjective<KillObjectiveFootprint>
HumanKillObjective
Implements
IWrapper<FactionObjectiveBase>
IWrapper<HumanObjectiveBase<KillObjectiveFootprint>>
IWrapper<HumanKillObjective>
Inherited Members
Extension Methods

Properties

Base

Gets the base Respawning.Objectives.HumanKillObjective that this class is wrapping.

public HumanKillObjective Base { get; }

Property Value

HumanKillObjective

Type

Gets the type of objective.

public override ObjectiveType Type { get; }

Property Value

ObjectiveType

Methods

IsValidEnemy(Player, Player)

Checks if the player is an enemy.

public bool IsValidEnemy(Player target, Player player)

Parameters

target Player

Target player.

player Player

Attacker.

Returns

bool

true if player is an enemy, false otherwise.

IsValidEnemy(RoleTypeId, Player)

Checks if the role is an enemy role.

public bool IsValidEnemy(RoleTypeId target, Player player)

Parameters

target RoleTypeId

Target role.

player Player

Attacker.

Returns

bool

true if role is an enemy role, false otherwise.

Kill(AttackerDamageHandler)

Fakes player's kill and tries to achieve this objective.

public void Kill(AttackerDamageHandler damageHandler)

Parameters

damageHandler AttackerDamageHandler

An AttackerDamageHandler instance.

Kill(Player, Player, DamageType)

Fakes player's kill and tries to achieve this objective.

public void Kill(Player target, Player attacker, DamageType damageType = DamageType.Unknown)

Parameters

target Player

Target player.

attacker Player

Attacker.

damageType DamageType

Damage type.