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
- 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
Methods
IsValidEnemy(Player, Player)
Checks if the player is an enemy.
public bool IsValidEnemy(Player target, Player player)Parameters
Returns
- bool
- trueif player is an enemy,- falseotherwise.
IsValidEnemy(RoleTypeId, Player)
Checks if the role is an enemy role.
public bool IsValidEnemy(RoleTypeId target, Player player)Parameters
- targetRoleTypeId
- Target role. 
- playerPlayer
- Attacker. 
Returns
- bool
- trueif role is an enemy role,- falseotherwise.
Kill(AttackerDamageHandler)
Fakes player's kill and tries to achieve this objective.
public void Kill(AttackerDamageHandler damageHandler)Parameters
- damageHandlerAttackerDamageHandler
- 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
- targetPlayer
- Target player. 
- attackerPlayer
- Attacker. 
- damageTypeDamageType
- Damage type.