Ar Resize

From the Oblivion ConstructionSet Wiki
Revision as of 11:26, 18 September 2010 by imported>QQuix (Organizing the Array Functions category list)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search
< [[::Category:Functions|Category:Functions]]

A function added by the Oblivion Script Extender.

Syntax:

(bResized:bool) ar_Resize array:Array newSize:short paddingValue:multi

Resizes an Array-type array to be of the specified size. If the new size is smaller than the current size, elements at the end of the array are discarded. If the new size is larger, additional elements are appended to the array. By default these elements have the numeric value zero, but an optional argument can be used to specify the value with which to pad the array. Returns 1 if successful, 0 otherwise.