This wiki is a copy of the original Oblivion CS wiki created and maintained by the UESP.net. See CSwiki:Copy Notice for more info.

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]