ds_priority_change_priority

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

 

Syntax:

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

 

Example:

if (global.Game_Time < 1000)
    {
    ds_priority_change(ai_priority, 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 function index held in the priority queue.