Jump to content

RemoveAllMods & RemoveAllModsFromInventoryItem - Do they work?


Korodic

Recommended Posts

As the title states, I cannot get either function to work. I'm working on a mod where I am creating leveled lists to add objects to NPCs. However, adding an object to a leveled list via script only seems to work when using the baseobject. Power armor, for example, then spawns from the leveled list -- but can spawn as anything in terms of power armor mods (some are army paint some are atom cats some are BoS some have jet packs... etc). I am trying to work around this, as it seems I cannot control it with the current implementation, but stripping mods from objects is proving challenging.

 

When trying to remove mods from objects as they are added, this did not work using either command:

 

objectNameHere.RemoveAllMods()

RemoveAllModsFromInventoryItem(objectNameHere)

 

Has anyone used these commands in a way that worked or are these dead? Previous Google searches turned up one other thread where someone else also could not get this to work: https://forums.nexusmods.com/index.php?/topic/4631775-instantly-strip-mods-from-weaponsarmor/

Link to comment
Share on other sites

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...