I'm completely new to programming of any kind
I want to create an elevator in tekkit but i wish to also integrate computercraft into my design, however im struggling with the craftOS scripting language
My question is i want to create a piece of script that when i send a redstone input i want a redstone output coming out of another side lasting 0.5 seconds and repeating however many times i want it to, can anyone help me?
I would like to know how to do this because I want the lift to go up smoothly, rather than the user having to repeatedly press a button, and it being a nuisence since tekkit is about getting rid of manual labour
0
redstone problems
Started by a newbie from doncaster, Jan 07 2013 07:14 AM
3 replies to this topic
#1
Posted 07 January 2013 - 07:14 AM
#2
Posted 07 January 2013 - 07:33 AM
welcome to the forums
you want to use the RS api:
http://computercraft...stone_%28API%29
and the sleep function:
http://www.lua.org/manual/5.1/
and look around the programs section to see how other people did it
you can also use RP's timers if you dont think you are ready for CC
you want to use the RS api:
http://computercraft...stone_%28API%29
and the sleep function:
sleep(0.5)if you want to learn LUA then you can read the manual:
http://www.lua.org/manual/5.1/
and look around the programs section to see how other people did it
you can also use RP's timers if you dont think you are ready for CC
#3
Posted 09 January 2013 - 08:01 AM
Thanks pixel toast, i'll look into it
#4
Posted 09 January 2013 - 08:27 AM
also just an fyi. on these forums post coding/your program related questions in the "Ask a Pro" section
1 user(s) are reading this topic
0 members, 1 guests, 0 anonymous users