Rule_AddInterval(<sRuleName>, <iFrameInterval>)
Description
Call the function <sRuleName> every <iFrameInterval> seconds.
Note: the docs say once every 10 * <iFrameInterval> game frames (variable between ~.1 and .3 seconds) -- which is wrong.
Example
function updateTimer()
...code...
end
Rule_AddInterval("updateTimer", 1)
Related Pages: