Log in / create account

Timer Functions/createTimer

From Vice City Online Wiki

createTimer

Syntax: timerID createTimer ( string FunctionName[], integer IntervalInMs, integer Repetitions )


Parameters:

  • string FunctionName[] - The name of the function which the timer will call.
  • integer IntervalInMs - In milliseconds, this is the amount of time between each function call (ex. 1000 milliseconds = 1 second).
  • integer Repetitions - The amount of times the timer will call the function; if this parameter is 0, then there are an infinite amount of repeitions.

Returns:

  • timerID TimerID - The ID of the timer which was created. This ID is used in other timer functions as a reference.

Sample Implementation:

N/A -- nothing