Posted 16 March 2012 - 02:13 PM
Hi! I'm a newcomer in Lua, and I have a problem. Me and my cousin wanted to make an RP server. We did it good, but then he came up with the idea: Let there be electricity.
So we began putting redstone all over the place and he wanted to do that: If the redstone isn't powered at the back of the computer, then the computer can't start. But, if there's redstone powered and connected to the back of the computer, then it can start.
We thought this would be good:
I wanted to ask you, is this possible? If yes, then how? Please help me fast.
So we began putting redstone all over the place and he wanted to do that: If the redstone isn't powered at the back of the computer, then the computer can't start. But, if there's redstone powered and connected to the back of the computer, then it can start.
We thought this would be good:
if redstone.output("back", false) then
os.shutdown()
end
else
if redstone.output("back", true) then
end
And then the starting would continue.(Because we want this to put into the startup)I wanted to ask you, is this possible? If yes, then how? Please help me fast.