Difference between revisions of "Ar Keys"
Jump to navigation
Jump to search
imported>Odessa (Created page with "{{Function |origin = NVSE |summary = Returns a regular array (list array) containing all of the keys found in the specified array. This may be useful for map and stringmap a...") |
imported>Odessa m (typo) |
||
Line 7: | Line 7: | ||
{{FunctionArgument | {{FunctionArgument | ||
|Name = Source | |Name = Source | ||
|Type = array | |Type = array}}}} | ||
==Example== | ==Example== | ||
<pre> | <pre> |
Latest revision as of 04:15, 12 July 2014
< [[::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