This is a read-only snapshot of the ComputerCraft forums, taken in April 2020.
Revalationist's profile picture

[Help] Player detectors and redstone signals

Started by Revalationist, 03 May 2013 - 06:22 AM
Revalationist #1
Posted 03 May 2013 - 08:22 AM
I am trying to make it so if Revalationist clicks on the player detector, the redstone signal is triggered.

This is my code:


p = peripheral.wrap("front")
while true do
event, b = os.pullEvent("player")
print(B)/>/>
end
if b == Revalationist then
rs.setOutput("back", true)
end
sleep(1)
rs.setOutput("back", false)
os.reboot()

The problem is, it prints Revalationist in the console, but no redstone signal.
Lyqyd #2
Posted 03 May 2013 - 01:00 PM
Split into new topic.

You need quotes around the name.
Revalationist #3
Posted 05 May 2013 - 01:09 PM
Split into new topic.

You need quotes around the name.

Did that, still no luck.