Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local args = {...}
- local start_flowRate = args[2] and tonumber(args[2]) or 2000
- local start_rodLevel = args[1] and tonumber(args[1]) or 100
- if (_init_has_run ~= true) then
- shell.run("init")
- end
- print("Boot-up sequence has begun...")
- for i,v in pairs(_turbines) do
- v.setFluidFlowRateMax(start_flowRate)
- v.setActive(true)
- if v.getActive() then
- print("[ ONLINE ] Turbine #", i)
- else
- printError("Turbine #", i, " failed to start.")
- end
- end
- for i,v in pairs(_reactors) do
- v.setAllControlRodLevels(start_rodLevel)
- v.setActive(true)
- if v.getActive() then
- print("[ ONLINE ] Reactor #", i)
- else
- printError("Reactor #", i, "\tfailed to start.")
- end
- end
- print("")
- print("Reactors brought online: ", #_reactors)
- print("Turbines brought online: ", #_turbines)
- print("Target control rod levels: ", start_rodLevel)
- print("Target turbine flow rate: ", start_flowRate)
- print("Boot-up sequence complete.\n")
- sleep(1)
- print("[ REACTOR ONLINE ]")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement