Difference between revisions of "RemoveMod - ObjectReference"
Jump to navigation
Jump to search
imported>Google12 m (→Examples: corrected a copy-paste error) |
imported>Google12 m (Added a Notes section) |
||
| Line 23: | Line 23: | ||
myRobot.RemoveMod(RobotArmMod) | myRobot.RemoveMod(RobotArmMod) | ||
</source> | </source> | ||
== Notes == | |||
Changing an armor item's mods causes it to be silently unequipped and re-equipped. | |||
== See Also == | == See Also == | ||
Latest revision as of 07:49, 28 October 2017
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) nativeParameters[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.