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

Question ccSensors and a gate !

Started by oliv1532, 24 September 2012 - 06:30 PM
oliv1532 #1
Posted 24 September 2012 - 08:30 PM
Hello everyone !

Im new to Computercraft and im having a huge issue. I have made a Bluetric gate (Im using Tekkit) with motors and support frames. Im wondering, can u make a ccSensor sence when a player is approaching and then open the gate and the same when u wanna get out ? as said im new to Computercraft and dont know how to write any code at all :S Any help appriciated ;)/>/>

Ollie :P/>/>
flighteur #2
Posted 24 September 2012 - 09:13 PM
you can follow this tuto of rondouglas on ccSensor : http://www.youtube.com/watch?v=34R4KfLmMSY&list=PL69E38751E0C625FE&index=9&feature=plpp_video

and then do a while loop when the player is detected that open the gate else it close it.

I don't have the sode, sorry.
oliv1532 #3
Posted 24 September 2012 - 09:18 PM
As i said before im noob to it so i dont know what a While loop is :S
Fatal_Exception #4
Posted 25 September 2012 - 01:35 AM
Then you should probably learn the basics of the language before trying to do something more advanced.

These tutorials should get you started.
oliv1532 #5
Posted 25 September 2012 - 03:49 PM
Now ive looked at tutorials for 3 hours and im still clueless..