Code: Select all
if lastfloat ~= nil and lastfloat+60 < game.tick then
while lastfloat+60 < game.tick do
end
end
Code: Select all
if lastfloat ~= nil and lastfloat+60 < game.tick then
while lastfloat+60 < game.tick do
end
end
Code: Select all
function proxy_tick(event)
if game.tick % 60 == 0 then
--TODO something
end
end
script.on_event(defines.events.on_tick, proxy_tick)