Ar Keys

From GECK
Jump to: navigation, search


A function added by the New Vegas Script Extender.

Description

Returns a regular array (list array) containing all of the keys found in the specified array. This may be useful for map and stringmap arrays.

Syntax

[help]
(array) Ar_Keys Source:array 

Example

array_var TypeCodes
array_var MyKeys

let TypeCodes := Ar_Map "Armor"::24, "Weapon"::40, "Ammo"::41, "Alchemy"::47

let MyKeys := Ar_Keys TypeCodes

; MyKeys is a regular array containing: "Alchemy", "Ammo", "Armor", "Weapon"
; Note: map keys are always sorted in ascending order

See Also