ds_priority_change_priority

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

语法:

ds_priority_change_priority(id, val, priority);


参数 描述
id The id of the priority queue to change.
val The value to change the priority of.
priority The new priority of the value.


返回: N/A(无返回值)


描述

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


例如:

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.


上一页: DS Priority Queues
下一页: ds_priority_delete_max
© Copyright YoYo Games Ltd. 2018 All Rights Reserved