Pizzaman007 Posted October 1, 2017 Share Posted October 1, 2017 So, i am creating a new NPC and i was hoping that i could just attach a script to him so that he wont wear his helmet unless he is in combat. Is this possible? I know there are lots of mods for it but I was hoping that this specific NPC would do it on his own without the help of other mods. Link to comment Share on other sites More sharing options...
JonathanOstrus Posted October 2, 2017 Share Posted October 2, 2017 There's a few ways to go about it. You can't directly attach a script to the npc. Well you can, but you shouldn't. Has something to do with the templating system. There's 2 obvious ways to do this:Attach a spell to the npc and have the conditions respond to combat. Have the magic effect's OnEffectStart equip the helmet, and OnEffectEnd unequip. Use a quest with a Reference Alias of your npc. Grab the OnCombatStateChanged on the ref alias and do things accordingly. https://www.creationkit.com/index.php?title=OnCombatStateChanged_-_Actor Link to comment Share on other sites More sharing options...
Pizzaman007 Posted October 2, 2017 Author Share Posted October 2, 2017 Thank you very much. I was completely lost before and now i have a very good foothold. I'll try those out! Thanks again Link to comment Share on other sites More sharing options...
Recommended Posts