MisterRADical Posted March 27, 2019 Share Posted March 27, 2019 (edited) Hi I was wondering if someone could help me with scripting in Fallout 4. I am new to scripting and am trying to make a script to make a melee weapon apply an explosion on hit and another one for when a creature hits the player using their Unarmed weapon to also apply an explosion. I messed around with a bunch of script stuff like from what the ck wiki said but nothing seemed to work. Can anybody give me a script or an idea of what I need to do? Thanks in advance! Edited March 27, 2019 by MisterRADical Link to comment Share on other sites More sharing options...
DieFeM Posted March 27, 2019 Share Posted March 27, 2019 I would use an object mod for the weapon.The mod would have an enchantment, and the enchantment would use a magic effect, this effect would do the explosion effect.You can get examples on how to setup it by looking at vanilla weapon mods that run effects on hit, like "Electrified" mod for the baton. Link to comment Share on other sites More sharing options...
SandMouseAnarchy Posted March 27, 2019 Share Posted March 27, 2019 Just like DieFeM says, it would probably be best to add an objectmod to your weapon that has an explosive enchantment :) You'll need an (ap_) attach point keyword (make sure to name it, this will be the category name that shows up in the workbench) and a (ma_) mod association keyword in the weapons record (the mod association tells the game which mods can go on this weapon), then you'll need to put both of those keywords in an (OMod) ObjectMod - and to the right of the OMod window there is a field where you can add enchantments, keywords etc - this is where you specify the explosive enchantment that you want, one of the vanilla ones will probably work nicely - then make a (CObj) Constructible object for your OMod so that you can build the weapons mod at the workbench, and you're all done :) Link to comment Share on other sites More sharing options...
MisterRADical Posted March 27, 2019 Author Share Posted March 27, 2019 (edited) I couldn't get that to work. I looked around and found this guys simple script: https://forums.nexusmods.com/index.php?/topic/6011163-papyrus-script-giving-a-melee-weapon-the-projectile-properties-of-the-tesla-rifle/page-2Which I got working, now I am just wondering does anybody know if you can raise the explosion up? It spawns on the ground and am wondering if there's a command for scripts that can place it higher like on their chest. Edited March 27, 2019 by MisterRADical Link to comment Share on other sites More sharing options...
Recommended Posts