Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- for add, proxy in pairs(reactors) do
- if proxy.getActive() then
- if steamchange == 1 then
- proxy.setAllControlRodLevels(100 - (steamreq / proxy.getHotFluidAmountMax()) * 100)
- os.sleep(5)
- if proxy.getHotFluidProducedLastTick() < steamreq then
- for i = 0, (proxy.getNumberOfControlRods() - 1) do
- if proxy.getControlRodLevel(i) > 0 then
- proxy.setControlRodLevel(i, proxy.getControlRodLevel(i) - 1)
- os.sleep(1.5)
- if proxy.getHotFluidProducedLastTick() > steamreq then
- <<<<at this point i want to exit all the way back to where the if statement checks to see if steamchange is 1>>>>
- end
- end
- end
- elseif proxy.getHotFluidProducedLastTick() > steamreq then
- for i = 0, (proxy.getNumberOfControlRods() - 1) do
- if proxy.getControlRodLevel(i) < 100 then
- proxy.setControlRodLevel(i, proxy.getControlRodLevel(i) + 1)
- os.sleep(1.5)
- if proxy.getHotFluidProducedLastTick() < steamreq then
- <<<<at this point i want to exit all the way back to where the if statement checks to see if steamchange is 1>>>>
- end
- end
- end
- end
- end
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement