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.
ds_map_find_all(id)
| Argument | Description |
|---|---|
| id | The id of the map to use. |
Array
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".