Code: Select all
if 0 then
game.print('truthy') -- prints 'truthy' to console
end
Code: Select all
script.on_event( defines.events.on_tick, function()
if game.tick % 180 == 0 then
-- do something every 180 ticks
end
end
Code: Select all
if 0 then
game.print('truthy') -- prints 'truthy' to console
end
Code: Select all
script.on_event( defines.events.on_tick, function()
if game.tick % 180 == 0 then
-- do something every 180 ticks
end
end
Code: Select all
if game.tick % 180 ~= 0 then return end