I’m trying to add some behavior to my AI after they’ve killed another pawn.
I don’t see any event in Controller or Pawn for this. I see Killed() in GameInfo, which I can use to forward the notification to the ‘Killer’ controller. Just seems odd that there isn’t an existing event for this…
I do this via the TakeDamage event of the pawn killed.
I check if health is 0 and then look at the eventinstigator, damagecauser or damagecauser.owner to assess an action e.g. I look at location of the hit and whether it was a head shot, full kill, kill from wounded, was from a player or another BOT etc as I may assign different points.
Once you get the killer from the the TD event you can instigate an action back on the killer pawn.
Cool, thanks for the response @Yummy-Vegetables, i’ve ended up doing the same thing.