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.

Difference between revisions of "Ar Null"

From the Oblivion ConstructionSet Wiki
Jump to navigation Jump to search
imported>QQuix
(Organizing the Array Functions category list)
imported>QQuix
(Added info about automatic destruction of arrays)
 
Line 2: Line 2:
  | origin = OBSE
  | origin = OBSE
  | summary = Returns an invalid array. This is useful if you wish to specify that a variable which previously referred to an array should no longer refer to any array.
  | summary = Returns an invalid array. This is useful if you wish to specify that a variable which previously referred to an array should no longer refer to any array.
OBSE keeps track of the number of references to each array and destroys the array when no references to it remain. This makes it unnecessary for scripts to worry about destroying arrays explicitly. But if you choose to destroy it yourself, make sure you use "Let MyArrayVar := ar_Null".
  | name = ar_Null
  | name = ar_Null
  | returnVal = nullArray
  | returnVal = nullArray

Latest revision as of 07:22, 18 February 2021

< [[::Category:Functions|Category:Functions]]

A function added by the Oblivion Script Extender.

Syntax:

(nullArray:array) ar_Null

Returns an invalid array. This is useful if you wish to specify that a variable which previously referred to an array should no longer refer to any array.

OBSE keeps track of the number of references to each array and destroys the array when no references to it remain. This makes it unnecessary for scripts to worry about destroying arrays explicitly. But if you choose to destroy it yourself, make sure you use "Let MyArrayVar := ar_Null".