SetRefCount

From the Oblivion ConstructionSet Wiki
Jump to navigation Jump to search


A command for Oblivion Script Extender

Syntax:

(nothing) reference.SetRefCount newCount:short

Sets the number of items in a stack of items in the game world.

Note[edit | edit source]

  • 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.

See Also[edit | edit source]