Jump to content

[LE] Detecting kills made by followers


Recommended Posts

Here's a problem I've been struggling with:

 

I want an event to trigger every time one of the player's followers, but not the player herself, kills an enemy.

 

But, whenever an active follower (as in member of the 'CurrentFollowerFaction') gets the last hit, the kill is attributed to the player, instead of the follower:

  • The value passed to 'OnStoryKillActor' as 'akKiller' is the player actor.
  • '(akVictim as Actor).GetKiller() returns the player actor.
  • 'OnDeath' events (on the victim or magic effects attached to the victim) receive the player as 'akKiller'.
  • Tracked stats (i.e. "People Killed" or "Animals Killed") are increased.

As a workaround I'm currently relying on a cloak effect and the 'OnHit' event of the target. It works, but I have to track health and reliability seems questionable.

Has anyone else had this problem before? Is there any simple solution I'm not seeing?

Edited by Takahanbu
Link to comment
Share on other sites

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...