Ar Keys
Revision as of 04:15, 12 July 2014 by imported>Odessa (typo)
< [[::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
(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