I mayu have figured it out.
I used to EVENT_COMBAT_EVENT event, and did the following
Code:
function OnKill( eventCode , result , isError , abilityName, abilityGraphic, abilityActionSlotType, sourceName, sourceType, targetName, targetType, hitValue, powerType, damageType, log )
if result == ACTION_RESULT_KILLING_BLOW then
--d("Works")
counter = counter + 1
end
end
I registered the combat event like so
Code:
EVENT_MANAGER:RegisterForEvent("KillCounter", EVENT_PLAYER_DEAD, OnKilled)
Gonna keep testing to make sure it works. Thanks all for the help, I'll let you guys know if i confirm it works.
EDIT: Nope, not quite but ALMOST THERE. This event definitely procs when killing blows and such happen, but are not limited to the players killing blows it seems. Will report with progress as I figure this out. Need to figure out these arguments. For many of the events, alot of the arguments are empty, so its hard to find out their values without looking through like a million of them.