SetRefCount

From GECK
Jump to: navigation, search


A function added by the New Vegas Script Extender.

Description

Sets the number of items in a stack of items in the world. Note that while this function will change the count of any type of reference, it may have unpredictable results when used on references like NPCs which are not logically stackable.

Syntax

[help]
reference.SetRefCount NewCount:int 

Example

SomeAmmoClipREF.SetRefCount 30

Notes

  • If using an (x)NVSE version older than 6.2.6, this function should not be used to modify the quantity of an inventory reference.

See Also