native set_task(Float:time, const function, id = 0, const any:parameter = "", len = 0, const flags = "", repeat = 0);
Time interval to assign
Function to execute
Task id to assign
Data to pass through to callback
Size of data
Optional set of flags:
"a" - repeat timer a set amount of times
"b" - loop indefinitely until timer is stopped
"c" - time interval is treated as absolute time after
"d" - time interval is treated as absolute time before
If the "a" flag is set, the task will be repeated this
Calls a function after a specified time has elapsed.
This function has no return value.
If an invalid callback function is provided, an error is