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);
参数 | 描述 |
---|---|
id | The id of the map to change. |
key | The key (along with its associated value) to delete. |
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).