ds_priority_add(id, val, priority);
Argument | Description |
---|---|
id | The id of the priority queue to add to. |
val | The value to add to the priority queue. |
priority | The priority of the value to add. |
Returns: N/A
With this function you can add a value (either a real number or
a string) to a priority queue, at the same time assigning it a
priority value.
ds_priority_add(ai_priority, scr_AI_Search, 5);
The above code adds a script to the priority queue indexed in the variable "ai_priority" and assigns it a priority of 5.