ds_priority_delete_value

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

 

Syntax:

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

 

Example:

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

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