CScheduler

Scheduler for calling functions.
Supports up to 8 parameters for function or method calls.

Type: Reference type

Methods

Declaration Description
CScheduledFunction@ SetTimeout(const string& in szFunction, float flDelay) Adds a timer that calls the given function after flDelay seconds.
CScheduledFunction@ SetTimeout(const string& in szFunction, float flDelay, ?& in) Adds a timer that calls the given function after flDelay seconds.
CScheduledFunction@ SetTimeout(const string& in szFunction, float flDelay, ?& in, ?& in) Adds a timer that calls the given function after flDelay seconds.
CScheduledFunction@ SetTimeout(const string& in szFunction, float flDelay, ?& in, ?& in, ?& in) Adds a timer that calls the given function after flDelay seconds.
CScheduledFunction@ SetTimeout(const string& in szFunction, float flDelay, ?& in, ?& in, ?& in, ?& in) Adds a timer that calls the given function after flDelay seconds.
CScheduledFunction@ SetTimeout(const string& in szFunction, float flDelay, ?& in, ?& in, ?& in, ?& in, ?& in) Adds a timer that calls the given function after flDelay seconds.
CScheduledFunction@ SetTimeout(const string& in szFunction, float flDelay, ?& in, ?& in, ?& in, ?& in, ?& in, ?& in) Adds a timer that calls the given function after flDelay seconds.
CScheduledFunction@ SetTimeout(const string& in szFunction, float flDelay, ?& in, ?& in, ?& in, ?& in, ?& in, ?& in, ?& in) Adds a timer that calls the given function after flDelay seconds.
CScheduledFunction@ SetTimeout(const string& in szFunction, float flDelay, ?& in, ?& in, ?& in, ?& in, ?& in, ?& in, ?& in, ?& in) Adds a timer that calls the given function after flDelay seconds.
CScheduledFunction@ SetTimeout(?& in thisObject, const string& in szFunction, float flDelay) Adds a timer that calls the given function after flDelay seconds. Calls object methods.
CScheduledFunction@ SetTimeout(?& in thisObject, const string& in szFunction, float flDelay, ?& in) Adds a timer that calls the given function after flDelay seconds. Calls object methods.
CScheduledFunction@ SetTimeout(?& in thisObject, const string& in szFunction, float flDelay, ?& in, ?& in) Adds a timer that calls the given function after flDelay seconds. Calls object methods.
CScheduledFunction@ SetTimeout(?& in thisObject, const string& in szFunction, float flDelay, ?& in, ?& in, ?& in) Adds a timer that calls the given function after flDelay seconds. Calls object methods.
CScheduledFunction@ SetTimeout(?& in thisObject, const string& in szFunction, float flDelay, ?& in, ?& in, ?& in, ?& in) Adds a timer that calls the given function after flDelay seconds. Calls object methods.
CScheduledFunction@ SetTimeout(?& in thisObject, const string& in szFunction, float flDelay, ?& in, ?& in, ?& in, ?& in, ?& in) Adds a timer that calls the given function after flDelay seconds. Calls object methods.
CScheduledFunction@ SetTimeout(?& in thisObject, const string& in szFunction, float flDelay, ?& in, ?& in, ?& in, ?& in, ?& in, ?& in) Adds a timer that calls the given function after flDelay seconds. Calls object methods.
CScheduledFunction@ SetTimeout(?& in thisObject, const string& in szFunction, float flDelay, ?& in, ?& in, ?& in, ?& in, ?& in, ?& in, ?& in) Adds a timer that calls the given function after flDelay seconds. Calls object methods.
CScheduledFunction@ SetTimeout(?& in thisObject, const string& in szFunction, float flDelay, ?& in, ?& in, ?& in, ?& in, ?& in, ?& in, ?& in, ?& in) Adds a timer that calls the given function after flDelay seconds. Calls object methods.
CScheduledFunction@ SetInterval(const string& in szFunction, float flRepeatTime) Adds a timer that calls the given function every flRepeatTime seconds,
for iRepeatCount times (or infinite times if REPEAT_INFINITE_TIMES).
The given function is called an infinite number of times.
CScheduledFunction@ SetInterval(?& in thisObject, const string& in szFunction, float flRepeatTime) Adds a timer that calls the given function every flRepeatTime seconds,
for iRepeatCount times (or infinite times if REPEAT_INFINITE_TIMES).
The given function is called an infinite number of times.
Calls object methods.
CScheduledFunction@ SetInterval(const string& in szFunction, float flRepeatTime, int iRepeatCount) Adds a timer that calls the given function every flRepeatTime seconds,
for iRepeatCount times (or infinite times if REPEAT_INFINITE_TIMES).
CScheduledFunction@ SetInterval(const string& in szFunction, float flRepeatTime, int iRepeatCount, ?& in) Adds a timer that calls the given function every flRepeatTime seconds,
for iRepeatCount times (or infinite times if REPEAT_INFINITE_TIMES).
CScheduledFunction@ SetInterval(const string& in szFunction, float flRepeatTime, int iRepeatCount, ?& in, ?& in) Adds a timer that calls the given function every flRepeatTime seconds,
for iRepeatCount times (or infinite times if REPEAT_INFINITE_TIMES).
CScheduledFunction@ SetInterval(const string& in szFunction, float flRepeatTime, int iRepeatCount, ?& in, ?& in, ?& in) Adds a timer that calls the given function every flRepeatTime seconds,
for iRepeatCount times (or infinite times if REPEAT_INFINITE_TIMES).
CScheduledFunction@ SetInterval(const string& in szFunction, float flRepeatTime, int iRepeatCount, ?& in, ?& in, ?& in, ?& in) Adds a timer that calls the given function every flRepeatTime seconds,
for iRepeatCount times (or infinite times if REPEAT_INFINITE_TIMES).
CScheduledFunction@ SetInterval(const string& in szFunction, float flRepeatTime, int iRepeatCount, ?& in, ?& in, ?& in, ?& in, ?& in) Adds a timer that calls the given function every flRepeatTime seconds,
for iRepeatCount times (or infinite times if REPEAT_INFINITE_TIMES).
CScheduledFunction@ SetInterval(const string& in szFunction, float flRepeatTime, int iRepeatCount, ?& in, ?& in, ?& in, ?& in, ?& in, ?& in) Adds a timer that calls the given function every flRepeatTime seconds,
for iRepeatCount times (or infinite times if REPEAT_INFINITE_TIMES).
CScheduledFunction@ SetInterval(const string& in szFunction, float flRepeatTime, int iRepeatCount, ?& in, ?& in, ?& in, ?& in, ?& in, ?& in, ?& in) Adds a timer that calls the given function every flRepeatTime seconds,
for iRepeatCount times (or infinite times if REPEAT_INFINITE_TIMES).
CScheduledFunction@ SetInterval(const string& in szFunction, float flRepeatTime, int iRepeatCount, ?& in, ?& in, ?& in, ?& in, ?& in, ?& in, ?& in, ?& in) Adds a timer that calls the given function every flRepeatTime seconds,
for iRepeatCount times (or infinite times if REPEAT_INFINITE_TIMES).
CScheduledFunction@ SetInterval(?& in thisObject, const string& in szFunction, float flRepeatTime, int iRepeatCount) Adds a timer that calls the given function every flRepeatTime seconds,
for iRepeatCount times (or infinite times if REPEAT_INFINITE_TIMES).
Calls object methods.
CScheduledFunction@ SetInterval(?& in thisObject, const string& in szFunction, float flRepeatTime, int iRepeatCount, ?& in) Adds a timer that calls the given function every flRepeatTime seconds,
for iRepeatCount times (or infinite times if REPEAT_INFINITE_TIMES).
Calls object methods.
CScheduledFunction@ SetInterval(?& in thisObject, const string& in szFunction, float flRepeatTime, int iRepeatCount, ?& in, ?& in) Adds a timer that calls the given function every flRepeatTime seconds,
for iRepeatCount times (or infinite times if REPEAT_INFINITE_TIMES).
Calls object methods.
CScheduledFunction@ SetInterval(?& in thisObject, const string& in szFunction, float flRepeatTime, int iRepeatCount, ?& in, ?& in, ?& in) Adds a timer that calls the given function every flRepeatTime seconds,
for iRepeatCount times (or infinite times if REPEAT_INFINITE_TIMES).
Calls object methods.
CScheduledFunction@ SetInterval(?& in thisObject, const string& in szFunction, float flRepeatTime, int iRepeatCount, ?& in, ?& in, ?& in, ?& in) Adds a timer that calls the given function every flRepeatTime seconds,
for iRepeatCount times (or infinite times if REPEAT_INFINITE_TIMES).
Calls object methods.
CScheduledFunction@ SetInterval(?& in thisObject, const string& in szFunction, float flRepeatTime, int iRepeatCount, ?& in, ?& in, ?& in, ?& in, ?& in) Adds a timer that calls the given function every flRepeatTime seconds,
for iRepeatCount times (or infinite times if REPEAT_INFINITE_TIMES).
Calls object methods.
CScheduledFunction@ SetInterval(?& in thisObject, const string& in szFunction, float flRepeatTime, int iRepeatCount, ?& in, ?& in, ?& in, ?& in, ?& in, ?& in) Adds a timer that calls the given function every flRepeatTime seconds,
for iRepeatCount times (or infinite times if REPEAT_INFINITE_TIMES).
Calls object methods.
CScheduledFunction@ SetInterval(?& in thisObject, const string& in szFunction, float flRepeatTime, int iRepeatCount, ?& in, ?& in, ?& in, ?& in, ?& in, ?& in, ?& in) Adds a timer that calls the given function every flRepeatTime seconds,
for iRepeatCount times (or infinite times if REPEAT_INFINITE_TIMES).
Calls object methods.
CScheduledFunction@ SetInterval(?& in thisObject, const string& in szFunction, float flRepeatTime, int iRepeatCount, ?& in, ?& in, ?& in, ?& in, ?& in, ?& in, ?& in, ?& in) Adds a timer that calls the given function every flRepeatTime seconds,
for iRepeatCount times (or infinite times if REPEAT_INFINITE_TIMES).
Calls object methods.
void RemoveTimer(CScheduledFunction@ pFunction) Removes the given function from the list of functions to call.
CScheduledFunction@ GetCurrentFunction() const Returns the function currently being executed, if any.
void ClearTimerList() Removes all queued functions from the list of functions to call.

Properties

Declaration Description
const int REPEAT_INFINITE_TIMES If passed to AddTimer, causes the given function to be called infinite times