SetTimerEx

From NPC for VCMP 0.4 Servers
Revision as of 08:40, 13 November 2022 by 127.0.0.1 (talk)
Jump to navigation Jump to search


Description:
This will create set a timer, which will be triggered when the given time has passed.


Parameters:

(FunctionName, interval, n, ...)

FunctionName[string] : The name of the function to be called.
interval[integer] : The amount of time (in milliseconds) after which the function will be called.
n[integer] : The number of times the function is to be called. Specify 0 to call the function infinite number of times.
... : Optional Parameters to pass to the function. Supported parameter data types are integers, floats and strings.


Return Values:
The ID of the timer created, which can be used with KillTimer

Important Note:
This was added in v2.0 and will not work in previous builds.


Related Functions

The following functions may be helpful as they relate to this function in one way or another.