Finds and returns the priority of the given value in the priority queue.


GML Code Example

ds_priority_find_priority(id, val);

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

Returns: Real or undefined


With this function you can retrieve the priority of any given value. If the value does not exist in the priority queue then undefined will be returned.


GML Code Example

p = ds_priority_find_priority(ai_priority, "intelligence");

The above code will store the returned priority for the given value in the instance variable "p".

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