Changes the priority of the given value in the priority queue.


GML Code Example

ds_priority_change_priority(id, val, priority);

Argument Description
id The id of the priority queue to change.
val The value to change the priority of.
priority The new priority of the value.

Returns: N/A


This function will take a given value and change its priority within the referenced priority queue.


GML Code Example

if global.Game_Time < 1000
    ds_priority_change(ai_priority, scr_AI_Search, 1);

The above code checks a global variable and if it is below a certain value it will then change the priority of the script index held in 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