Returns the value in the priority queue with the smallest priority without deleting it.



Argument Description
id The id of the priority queue to use.

Returns: Real or String


With this function you can find the value stored in the priority queue with the lowest priority, and if more than one value has the same priority, the one that was added to the priority queue first will be the one to get returned. However, unlike ds_priority_delete_min, this function will not remove the value from the queue.


if ai_move

The above code checks an instance variable and if it returns true it will execute a script indexed in the priority queue with the lowest priority value.

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