SetWeaponItemMod

From GECK
Jump to: navigation, search


A function added by the JIP NVSE Plugin.

Description

Sets a weapon's mod form at the specified index.

Syntax

[help]
(itemMod:ref) SetWeaponItemMod weapon:ref index:int{1-3} newItemMod:ref

Example

SetWeaponItemMod WeapNVAssaultCarbine 2 ModNV10mmPistolSilencer

Will set the #2 mod item of WeapNVAssaultCarbine to ModNV10mmPistolSilencer.

SetWeaponItemMod WeapNVAssaultCarbine 3

Will set the #3 mod item of WeapNVAssaultCarbine to None.

See Also