ds_map_delete

Deletes the key from the ds_map.

Syntax:

GML Code Example

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:

GML Code 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



No Examples Submitted

Does this page need better examples? Be the first to Submit

No Edits Suggested

Is this page unclear or not descriptive enough? Suggest an edit to the page and with enough upvotes your changes will be made.

No Questions Have Been Ask

Do you have a question about this page? Ask it Here