Script Function Reference

Function Reference >Script Function Reference >Function Manipulation>setInterval

setInterval

setInterval sets a parameter interval for function.

setInterval(fn, parameter, inteval)

Parameters

fn can either be a string with name of a function or a function table generated with getFunction or createFunction.
parameter is a string with the name of the paramater for which the interval is being set.
inteval is an interval table.

Return Value

setInterval doesn't return anything

Example

function example()
	setInterval("f", createInterval("-10", "10", "100"))
end