Posted 28 November 2014 - 09:29 PM
hi
i need help with this code
i just want the the code to turn on the reacter if the energy is low and stop when its hits 7mil rf then sleep for 3600 sec because i have 2bil rf bank capacitors
here is the code i made
i want it to turn it off the reactor after it reach 7mil rf then sleep because 2bil rf will take 2-3 hours before it drains
or if we can make the computer check the bank capacitor 2bil rf capacity 1- if under 25% activate reactor 2-if 99% turn off reactor
i don't know how to do that
appreciate your help.
i need help with this code
i just want the the code to turn on the reacter if the energy is low and stop when its hits 7mil rf then sleep for 3600 sec because i have 2bil rf bank capacitors
here is the code i made
while true do
local reactor = peripheral.wrap("BigReactors-Reactor_3")
local low = 2000
local high = 7000000
if reacter.getEnergyStored() <= low then
reactor.setActive(true)
end
if reacter.getEnergyStored() >= high then
reactor.setActive(false)
end
sleep(5)
end
when i change the 5 sec to 3600 sec it just turn the reactor on then sleep for 3600i want it to turn it off the reactor after it reach 7mil rf then sleep because 2bil rf will take 2-3 hours before it drains
or if we can make the computer check the bank capacitor 2bil rf capacity 1- if under 25% activate reactor 2-if 99% turn off reactor
i don't know how to do that
appreciate your help.