Help with redstone signal and command #1946
Unanswered
Undefinyx1
asked this question in
Q&A
Replies: 1 comment
-
Firstly, it sounds like you've figured out how to wait for a redstone input, but just in case, I normally do it by looping until -- Wait for a redstone signal on the left
while not redstone.getInput("left") do
os.pullEvent("redstone")
end As to playing an audio file, there's several options. The easiest is to use shell.run("speaker play my_audio_file.dfpwm") Alternatively, you can call |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I want to make my speaker play an audio file after recieving a redstone input (the os.PullEvent("redstone") thingy).
Anybody know how?
Beta Was this translation helpful? Give feedback.
All reactions