ds_map_find_all

With this function you can get retrieve an array that contains all the keys in the map. You supply the DS map ID value (as returned by the function ds_map_create()), and the function will return an array, where each entry in the array corresponds to a single key from the DS map.

 

Syntax:

ds_map_find_all(id)

Argument Description
id The id of the map to use.

 

Returns:

Array

 

Example:

key_array = ds_map_find_all(inventory);

The above code will get all the keys from the "inventory" map and store them as an array in the variable "key_array".