Collygon Posted October 8, 2018 Share Posted October 8, 2018 Hey guys, I'm currently working on expanding a weapon mod of mine and have hit a dead end. Basically, I am trying to write a script (if is works without a script, all the better) where when the weapon hits an enemy, the summon familiar spell (the spell is a place holder. I've made a custom one in the mean time) is cast at the enemies or the player's location. So far, I've tried the effect as an enchantment using the "contact" delivery method, but that did not work. I've also scripted a very basic OnHit event onto the weapon's script, but the event never triggered. (I tested by displaying a notification each time. I never saw one.) If anyone can help me out, I'd really appreciate it. I'm new to the CK and Papyrus, but I've been coding for a while so I can grasp the material pretty quick. Regards,--Collygon Link to comment Share on other sites More sharing options...
corrado33 Posted October 9, 2018 Share Posted October 9, 2018 (edited) EDIT: I went to the wrong creation kit wiki.... and I think fallout4 handles onhit differently. I will tell you this. OnHit is run on the thing that IS hit, not on the spell or the player. So the script has to be attached to that... somehow? I think. Edited October 9, 2018 by corrado33 Link to comment Share on other sites More sharing options...
AbelsSkyrim Posted October 14, 2018 Share Posted October 14, 2018 I would HIGHLY recommend downloading Apocalypse (the magic mod), and rummaging through it with xEdit. I know there are many onhit spells in that mod, which DON'T require SKSE(no extra scripting) and by checking the references and spell effects you should be able to find the correct inputs to use without too much trouble. Good Luck! Link to comment Share on other sites More sharing options...
Recommended Posts