Jump to content

[LE] Detect when player hits something with a weapon


Recommended Posts

Ok, so I am trying to determine when the player hits an opponent with a weapon.

 

(I also want to check keywords on the weapon that is used, but that is kind of secondary).

 

 

I had tried attaching a spell with an contact delivery magical effect with a type of Script, but could not get the on effect start script event to work.

 

Any suggestions for detecting when a player hits someone with a weapon?

(not a spell, and not a bow, specifically a close up weapon with specific keywords - I think I can use "haskeyword" for that).

 

thank you for any suggestions.

Link to comment
Share on other sites

Two ways I can think of:

 

Option A) A perk, you can use perk entry point "Apply Combat Hit Spell" that will apply a contact magic effect to the target, not sure if that's you mean by "attaching a spell with an contact delivery magical effect", you didn't specify what did you attach it to. In any case, that would work, you can have multiple entries with conditions checking for different keywords and so apply different effects.

 

Option B) OnHit event, you need to add an spell to actors around the player via a cloak spell on the player, it will have a magic effect with the onhit event that can in turn get the weapon he was hit by and do whatever you need done.

https://www.creationkit.com/index.php?title=OnHit_-_ObjectReference

Edited by FrankFamily
Link to comment
Share on other sites

  • Recently Browsing   0 members

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