Ar Construct

From GECK
Jump to: navigation, search


A function added by the New Vegas Script Extender.

Description

Returns an empty array of the specified type. To assign the function return to a variable, the let command must be used, rather than 'set'.

Type is specified as one of three strings; 'array', 'map' or 'stringmap'. This type can later be checked using TypeOf.

Syntax

[help]
(Array) Ar_Construct type:string 

Example

array_var MyList
array_var MyMap
array_var MyStringMap

let MyList := Ar_Construct "array"
let MyMap := Ar_Construct "map"
let MyStringMap := Ar_Construct "stringmap"

See Also