Ar Init
From GECK
A function added by the New Vegas Script Extender version 6.1.7.
Contents
Description
Creates a new (numerically-indexed) Array populated with a specified amount of an element. Every element of that array is set to the provided elem, which can be of any type.
Syntax
(array) ar_Init numElems:int initElem:anyType
Example
let array_var aTest := ar_Init 5 0
aTest is filled with 5 elements, which are all initialized to 0.
let array_var aRandomNumber := ar_Init 13 (Rand 0, 100)
aRandomNumber is filled with 13 elements, which are all assigned to the same random number that was generated once by `Rand 0, 100`.
let array_var aString := ar_Init 50 "SomeString"
aString is filled with 50 elements, which are all assigned to "SomeString".