Skip to main content

KilledEnemyCompleted

Gets called when the enemy kill objective has been completed.

Start a script section

!-- OnEvent KilledEnemyCompleted
-- require @evTarget @evPlayer $evFaction $evInfluenceToGrant $evTimeToGrant $evSendToPlayers

# Add your instructions here
  • Group: ObjectiveEvents
  • Cancellable: No
  • Event data: EnemyKilledObjectiveEventArgs

Injected variables

VariableTypeDescription
@evTargetplayer valueGets the player that has been killed.
@evPlayerplayer valueGets the player that invoked the event.
$evFactionFaction enum valueGets the Faction which will receive the InfluenceToGrant and TimeToGrant rewards.
$evInfluenceToGrantnumber valueGets the amount of influence to grant to the Faction.
$evTimeToGrantnumber valueGets the amount of time to be reduced from the Faction's timer.
Remarks: Negative values reduce the timer, positive extends it.
$evSendToPlayersbool valueGets whether the objective completion should be sent to players and visible on their screen.