CScheduledFunction

Handle to a scheduled function

Type: Reference type

Methods

Declaration Description
float GetNextCallTime() const Gets the next call time, in seconds
void SetNextCallTime(const float flNextCallTime) Sets the next call time, in seconds. Is an absolute value (g_Engine.time + RepeatTime by default).Times in the past will result in a call on the next frame.
float GetRepeatTime() const Gets the repeat time, in seconds
void SetRepeatTime(const float flRepeatTime) Sets the repeat time, in seconds. Must be a positive value (may be zero)
int GetRepeatCount() const Gets the repeat count
bool IsInfiniteRepeat() const Returns whether this function repeats infinitely
void SetRepeatCount(const int iRepeatCount) Sets the repeat count. Must be a positive value (may be zero) or REPEAT_INFINITE_TIMES
void MakeInfiniteRepeat() Makes this an infinite repeat function
bool HasBeenRemoved() const Returns whether this function has been removed from the scheduler or not