Jump to content




[Help] Player detectors and redstone signals


  • You cannot reply to this topic
2 replies to this topic

#1 Revalationist

  • Members
  • 3 posts

Posted 03 May 2013 - 07: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.

#2 Lyqyd

    Lua Liquidator

  • Moderators
  • 8,465 posts

Posted 03 May 2013 - 12:00 PM

Split into new topic.

You need quotes around the name.

#3 Revalationist

  • Members
  • 3 posts

Posted 05 May 2013 - 12:09 PM

View PostLyqyd, on 03 May 2013 - 12:00 PM, said:

Split into new topic.

You need quotes around the name.

Did that, still no luck.





1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users