RemoveMod - ObjectReference

From the Fallout4 CreationKit Wiki
Jump to navigation Jump to search

Member of: ObjectReference Script

Removes a mod from this object. Specifically, looks for a mod on this object of type akMod and if it finds one, removes it.

Syntax[edit | edit source]

Function RemoveMod(ObjectMod akMod) native

Parameters[edit | edit source]

  • akMod: the base form of a mod that we wish to remove from this reference

Return Value[edit | edit source]

None.

Examples[edit | edit source]

; Get rid of one of myRobot's arm mods. Currently there is a limitation where you can't pick which one. :(
myRobot.RemoveMod(RobotArmMod)

Notes[edit | edit source]

Changing an armor item's mods causes it to be silently unequipped and re-equipped.

See Also[edit | edit source]