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
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
RoleTypeIdTarget role.
player
PlayerAttacker.
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
AttackerDamageHandlerAn 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
PlayerTarget player.
attacker
PlayerAttacker.
damageType
DamageTypeDamage type.