Jump to content

[LE] Detecting player hitting enemy


Recommended Posts

I'm a fairly novice modder and am currently working on a mod for unarmed combat. In it I need to detect when the player deals damage with an unarmed attack. I've checked out the mod One-Handed Fists and looked through the forums to find this thread. I also read somewhere that the perk approach mentioned in the thread wouldn't work for unarmed attacks.

 

So the approach seems to be to give every detected actor (aside from the player) an ability with a Script-archetype MagicEffect that contains a script with an OnHit event. I can work my way through most of this, however I don't understand how I can actually place the ability on every detected actor.

 

Ideally, I suppose I'd want the ability to only be placed on actors very close to the player (since unarmed attacks have very low range anyway) to minimize any lag caused by my script but I'll settle for any approach that works.

Link to comment
Share on other sites

  • Recently Browsing   0 members

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