Events API - AI Killers?

So in the events API, I can pull out the data about AIs when the AI is the victim via the VictimStockId key, but how would I pull the data on AI killers?

E.g. at the start of this game - 16c15027-5590-4591-af8d-7986256843ad - there’s some hardcore AI on AI action. I know who the victims are, but I’ve got no way of pulling out the data on the killers, other than marking them as generic AI? Am I missing something?

Oh and the largeIconImageUrl attr has a typo in the docs - https://developer.haloapi.com/docs/services/560af0dae2f7f710cc79e516/operations/562d68f1e2f7f72764ff1f49

Other than that though, this is some lovely stuff to be playing with! Well done 343.

This is the an event pulled out of MatchId: d9323dc5-d1bd-4686-8e39-158cd360eca7

> Assistants
> DeathDisposition=1
> EventName=Death
> IsAssassination=False
> IsGroundPound=False
> IsHeadshot=False
> IsMelee=True
> IsShoulderBash=False
> IsWeapon=False
> Killer=(null)
> KillerAgent=2
> KillerWeaponAttachmentIds
> KillerWeaponStockId=2631958027
> KillerWorldLocation = { x=-115.2316, y=-0.166245788, z=0.415654 }
> TimeSinceStart=PT34.928895S
> Victim=(null)
> VictimAgent=2
> VictimAttachmentIds
> VictimStockId=724440388
> VictimWorldLocation = { x=-115.068359, y=0.1665497, z=0.416072726 }

Even though the property is called Killer__Weapon__StockId, it still seems to show the Enemy Type

KillerWeaponStockId = 2631958027 (Crawler)
VictimStockId = 724440388 (Marine)

Both of those come from the Enemy endpoint.

It’s not consistent though. Here’s a couple of events from the game I posted above -

> — Assistants:
> DeathDisposition: 1
> IsAssassination: false
> IsGroundPound: false
> IsHeadshot: false
> IsMelee: false
> IsShoulderBash: false
> IsWeapon: true
> Killer:
> KillerAgent: 2
> KillerWeaponAttachmentIds:
> KillerWeaponStockId: 2681172411 [FRAG GRENADE]
> KillerWorldLocation: x: -66.56474 y: -63.98937 z: -8.798547
> Victim:
> VictimAgent: 2
> VictimAttachmentIds:
> VictimStockId: 724440388 [Marine]
> VictimWorldLocation: x: -70.10585 y: -68.89826 z: -8.799481
> EventName: Death
> TimeSinceStart: PT47.2110012S

And…

> — Assistants:
> DeathDisposition: 1
> IsAssassination: false
> IsGroundPound: false
> IsHeadshot: false
> IsMelee: false
> IsShoulderBash: false
> IsWeapon: true
> Killer:
> KillerAgent: 2
> KillerWeaponAttachmentIds:
> KillerWeaponStockId: 4153405209 [Boltshot]
> KillerWorldLocation: x: 83.0670853 y: 59.3503723 z: -8.797875
> Victim:
> VictimAgent: 2
> VictimAttachmentIds:
> VictimStockId: 724440388 [Marine]
> VictimWorldLocation: x: 86.83854 y: 59.0902519 z: -8.79963
> EventName: Death
> TimeSinceStart: PT1M3.861001S

In both cases, the KillerWeaponStockId key refers to the weapon, and not the enemy type.

Hi Five0h0ne! We have more explanation about raw events over at this topic (link). And thanks for letting us know about the typo in the Metadata APIs – we’ll get that corrected soon! Please let us know if you still have questions.