Ar Keys

From the Fallout3 GECK Wiki
Revision as of 04:15, 12 July 2014 by imported>Odessa (typo)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search
< [[::Category:Functions|Category:Functions]]

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