Closed Amaroq7 closed 5 years ago
Suggestion for flags InstantCall - call callback after creating task without waiting timer Annoying example
TaskCallback(id);
set_task(1.0, "TaskCallback", id, .flags = "b");
My suggestion is to add pause and unpause methods . It can help us to show user HUD when user is alive (spawn) and pause it when he was dying.
Description
Timer manager should responsible for creating, executing, removing tasks. Timer would be destroyed after finished execution (one time task) or by using
Remove()
. Timer with repeat flag could be destroyed returningPluginStop
in its callback or by executingRemove()
.Example plugin api:
How do we replicate the issue?
n/a
Expected behavior (i.e. solution)
SPMod should expose api for plugins and modules to manage timers.
Other Comments
n/a