ds_priority_change_priority

Changes the priority of the given value in the 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


Description

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


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.


Back: DS Priority Queues
Next: ds_priority_delete_max
© Copyright YoYo Games Ltd. 2018 All Rights Reserved