ds_map_delete

Deletes the key from the ds_map.

Syntax:

ds_map_delete(id, key);


Argument Description
id The id of the map to change.
key The key (along with its associated value) to delete.


Returns: N/A


Description

With this function you can remove any given key (and its corresponding value) from the given, previously created, ds_map.


Example:

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).


Back: DS Maps
Next: ds_map_empty
© Copyright YoYo Games Ltd. 2018 All Rights Reserved