ds_priority_delete_value

Deletes the given value (along with its priority) from the priority queue.

Syntax:

GML Code Example

ds_priority_delete_value(id,val);


Argument Description
id The id of the priority queue to use.
val The value to delete from the priority queue.


Returns: N/A


Description

This function will simply delete the given value, along with its priority, from the indexed priority queue.


Example:

GML Code Example

if ai_move = false
    {
    ds_priority_delete_value(ai_priority, scr_AI_Move);
    }
 

The above code checks an instance variable and if it returns false it will remove the indexed script from the priority queue.





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