davethepak Posted May 7, 2018 Share Posted May 7, 2018 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 More sharing options...
FrankFamily Posted May 7, 2018 Share Posted May 7, 2018 (edited) 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 May 7, 2018 by FrankFamily Link to comment Share on other sites More sharing options...
foamyesque Posted May 8, 2018 Share Posted May 8, 2018 I'd use the Perk approach here. It's cleaner and less likely to glitch out things like brawls or the Solitude execution scene. Link to comment Share on other sites More sharing options...
davethepak Posted May 11, 2018 Author Share Posted May 11, 2018 Thank you for all the feedback best regards. Link to comment Share on other sites More sharing options...
Recommended Posts