Posted 10 July 2012 - 04:41 AM
i was wondering if anyone knew how to make it to when i put a rs signal in my console it starts a movie on a monitor and stops it when the rs signal goes away
local play = false
function set(bool)
play = bool
end
function get(bool)
play = bool
end
Then you will load it as an API in your "run the movie upon redstone input" file and the "movie" file.
os.loadAPI("movie")
function runMovie()
shell.run("movie file name here")
end
function main()
os.pullEvent("redstone")
movie.set(true)
parallel.waitForAny(runMovie, checkRedstone)
return
end
function checkRedstone()
os.pullEvent("redstone")
movie.set(false)
return
end
while true do
main()
end