Support

Equilla Formula Language

GlobalVector

Returns a newly created vector (a vector is a one-dimensional array) that can be shared between scripts. Vector indices start at zero.

Inputs

DefaultValue
Any: (Optional) The default value to initialize empty items in the vector with. If no value is specified the vector items will be initialised with zero (0).
Size
Numeric: (Optional) The starting size of the vector. All vectors are dynamic so you are still able to extend the vector even if you set a starting size. If no size is set the vector starts with zero (0) elements.

Examples

Declaring a global vector as a global variable
Variables: myNamespace::myArray( GlobalVector );
Accessing a global vector called myNamespace::myArray
Print( ReadVector( myNamespace::myArray, 0 ) );