Returns the value in the priority queue with the largest priority.


GML Code Example


Argument Description
id The id of the priority queue to use.

Returns: Real or String


With this function you can find the value stored in the priority queue with the highest priority, and if more than one value has the same priority, the one that was added to the priority queue first will be the one to get returned. However, unlike ds_priority_delete_max, this function will not remove the value from the queue.


GML Code Example

if ai_move

The above code checks an instance variable and if it returns true it will execute a script indexed in the priority queue with the highest priority value.

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