ReplaceItemInInventory

From GECK
Jump to: navigation, search


A function added by the pp NVSE Plugin.

Description

When called on an inventory reference, this will replace that exact inventory reference with a new baseform. This works on equipped items.

Syntax

[help]
(none) ReplaceItemInInventory item:ref copy:bool count:int

Example

ref rItem = Player.GetEquippedWeaponRef
rItem.ReplaceItemInInventory WeapNV9mmPistol 1

Will replace the players currently equipped weapon with a 9mm pistol.

Notes

See Also