With this function you can remove any given key (and its corresponding value) from the given, previously created, DS map .
ds_map_delete(id, key);
Argument | Type | Description |
---|---|---|
id | DS Map | The id of the map to change. |
key | String | The key to delete (along with its associated value). |
N/A
ds_map_delete(inventory, "shield");
The above code will delete the key "shield" (and the value it is paired with) from the DS map (inventory).