GetNumKillingAttacks

From ESOUI Wiki

Jump to: navigation, search

Returns the number of attacks that contributed to the player's death.

Example

for i = 1, GetNumKillingAttacks() do
   local attackName, attackDamage, attackIcon, wasKillingBlow, castTimeAgoMS, durationMS, numAttackHits = GetKillingAttackInfo(i)
   d("One of the things that killed you was: " .. attackName)   
   if DoesKillingAttackHaveAttacker(i) then
      local attackerRawName, attackerChampionPoints, attackerLevel, attackerAvARank, isPlayer, isBoss, alliance, minionName, attackerDisplayName = GetKillingAttackerInfo(i)
      local battlegroundAlliance = GetKillingAttackerBattlegroundAlliance(i)
      if isPlayer then
         d(" - Killed by another player? What a jerk!")
      end
   end
end

External links

Personal tools
Namespaces
Variants
Actions
Menu
Wiki
Toolbox