Ar Unique
From GECK
A function added by the New Vegas Script Extender version 6.2.3.
Contents
Description
Returns a (non-deeply) copied version of the source array that has no duplicate values.
The first instance of a value in the array is what's kept in the new array; all other duplicate values following that are discarded.
This function can only be used in a script, not as a Condition.
Syntax
(array) Ar_Unique source:array_var
Example
array_var aTest
let aTest := ar_List 1, 2, 3, 2, 2, 2, 3 let aTest := Ar_Unique aTest
The aTest array will be set to contain [1, 2, 3].