HungryCarnivore Posted June 13, 2021 Share Posted June 13, 2021 Howdy y'all! I'm attempting my first mod, and so this question is from a place of deep ignorance. I want to create a dead NPC with various items equipped on them, in this case parts from Children of Atom - Fanatics Outfits. I've created the dead NPC, and gotten her placed in world successfully. The armor items show up in her inventory, and can be looted. For the life of me, and its likely I just haven't understood some of the posts about scripting, I cannot figure out how to get the NPC to spawn wearing the items. She spawns naked, though in the correct position in the cell. If there is a quick answer to this, or a tutorial that covers this specific issue (the one I found and watched on Youtube was just a quick NPC made with base game items) I'd be grateful for the help. Thanks,Carnivore Link to comment Share on other sites More sharing options...
dylbill Posted June 13, 2021 Share Posted June 13, 2021 Since your actor is custom, you can attach a script directly to them. Something like this: Scriptname TM_ActorScript extends Actor Armor Property MyArmorA Auto Armor Property MyArmorB Auto Event OnInit() ;Event fires when actor is first loaded in the game. EquipItem(MyArmorA) ;This actor equips MyArmorA EquipItem(MyArmorB) EndEventAfter compiling and attaching the script, don't forget to fill properties. For more info on properties you can go here: http://tesalliance.org/forums/index.php?/topic/5039-class-2-properties/ Link to comment Share on other sites More sharing options...
Zorkaz Posted June 13, 2021 Share Posted June 13, 2021 Have you set an outift?In older Bethesda games you only needed to put some clothing in the inventory and the NPC would equip it. In Fallout 4 you need to create an outfit, which is a separate entry from clothing Link to comment Share on other sites More sharing options...
HungryCarnivore Posted June 13, 2021 Author Share Posted June 13, 2021 Since your actor is custom, you can attach a script directly to them. Something like this: Scriptname TM_ActorScript extends Actor Armor Property MyArmorA Auto Armor Property MyArmorB Auto Event OnInit() ;Event fires when actor is first loaded in the game. EquipItem(MyArmorA) ;This actor equips MyArmorA EquipItem(MyArmorB) EndEventAfter compiling and attaching the script, don't forget to fill properties. For more info on properties you can go here: http://tesalliance.org/forums/index.php?/topic/5039-class-2-properties/ I think I should be able to handle the above after a beginners papyrus tutorial. How will I get the script to know correct armor piece to use though? Won't the ID for each piece be different on each PC (assuming anyone uses my mod of course lol)? Link to comment Share on other sites More sharing options...
HungryCarnivore Posted June 13, 2021 Author Share Posted June 13, 2021 Have you set an outift?In older Bethesda games you only needed to put some clothing in the inventory and the NPC would equip it. In Fallout 4 you need to create an outfit, which is a separate entry from clothing That would allow the 5 or 6 items to be lootable from the corpse? Link to comment Share on other sites More sharing options...
LarannKiar Posted June 13, 2021 Share Posted June 13, 2021 Have you set an outift?In older Bethesda games you only needed to put some clothing in the inventory and the NPC would equip it. In Fallout 4 you need to create an outfit, which is a separate entry from clothing That would allow the 5 or 6 items to be lootable from the corpse? Yes, just add the other items in her inventory. Link to comment Share on other sites More sharing options...
Recommended Posts