RemoveAllModsFromInventoryItem - ObjectReference

Member of: ObjectReference Script

Remove all mods from an item in this object's inventory. Note that some items, such as hand-made guns, won't have any geometry left if you call this on them, even though they will remain in the object's inventory, which might be weird.

SyntaxEdit

Function RemoveAllModsFromInventoryItem(Form akItem) native

ParametersEdit

  • akItem: a base form of the item we want to remove all mods from

Return ValueEdit

None.

ExamplesEdit

; strip bob's power armor down to the frame (while he is in it!)
BobRef.RemoveAllModsFromInventoryItem(PowerArmorObject)

NotesEdit

  • Currently there is a bug if you do this to an actor in combat; they will end up having no weapons drawn and won't attempt to draw any unless forced to do so.
  • Currently this function causes the object to reload its entire 3d if they had the item equipped that you modified. This might look strange if the player is watching. This also causes the above mentioned bug.
  • This function currently won't work if the object it is called on has more than one of the item you request to modify.

See AlsoEdit