Add rp_mobs.clear_task_queue
This commit is contained in:
parent
c0495ae719
commit
20a63f90a4
@ -716,6 +716,9 @@ Add the microtask `microtask` to the specified `task`. Will also initialize the
|
||||
Ends the currently active task in the given `task_queue` of `mob`.
|
||||
If the task queue is empty, nothing happens.
|
||||
|
||||
#### `rp_mobs.clear_task_queue(mob, task_queue)`
|
||||
|
||||
Remove all tasks in the given `task_queue`.
|
||||
|
||||
|
||||
|
||||
|
@ -460,6 +460,10 @@ rp_mobs.end_current_task_in_task_queue = function(mob, task_queue)
|
||||
end
|
||||
end
|
||||
|
||||
rp_mobs.clear_task_queue = function(task_queue)
|
||||
task_queue.tasks:removeAll()
|
||||
end
|
||||
|
||||
rp_mobs.create_task = function(def)
|
||||
local task
|
||||
if def then
|
||||
|
Loading…
x
Reference in New Issue
Block a user