Difference between revisions of "Ar Resize"

From the Oblivion ConstructionSet Wiki
Jump to navigation Jump to search
imported>CSbot
(Automated import of articles)
 
imported>QQuix
(Organizing the Array Functions category list)
 
Line 1: Line 1:
{{BotAddedPage|CSbot|DragoonWraith}}
{{Function
{{Function
  | origin = OBSE
  | origin = OBSE
Line 23: Line 22:
[[Category:Functions (OBSE)]]
[[Category:Functions (OBSE)]]
[[Category:Functions (OBSE v0018)]]
[[Category:Functions (OBSE v0018)]]
[[Category:Array Variable Functions (OBSE)]]
[[Category:Array Functions (OBSE)]]
[[Category:Array Functions (OBSE)]]

Latest revision as of 11:26, 18 September 2010

< [[::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.