Is there a way for some functions to run at 10hz and others at 1hz?
Here was my thought, the functions are defined earlier in the code
That way, some functions are only run every 10th tick?local timer = 0
setTickRate(10)
function onTick()
overrevMarker()
if timer = 0 then timer = 1 end
if timer = 1 then timer = 2 end
if timer = 2 then timer = 3 end
if timer = 3 then timer = 4 end
if timer = 4 then timer = 5 end
if timer = 5 then timer = 6 end
if timer = 6 then timer = 7 end
if timer = 7 then timer = 8 end
if timer = 8 then timer = 9 end
if timer = 9 then timer = 0 end
If timer = 0 then
startLog()
checkGear()
end
end