How to control Piston using R Stick (how to stop it)?
I want to be able to control a vertical piston so that when I push the R Stick Up and Down the piston moves accordingly. I am using a controller sensor with R Stick Local connected to a Splitter, and the Splitter Y connected to another Splitter to seperate Up and Down.
Then I made it so as long as Up OR Down are pressed the Piston stays on, and if I press Up it is also set on Reverse.
The problem is that I can’t make it stop, so when it reaches min/max value it keeps going no matter which button is pressed and the controls get messed up.
It doesn’t really say on the tooltip what Min and Max Value on the Piston output through a wire...is the output TRUE when the value is reached, or does it output some other value?
I thought I could do somehing like “IF min value is reached AND pressing down” the Piston stays on but can’t quite work it out.
So basically, I need to have a Piston move backwards/forwards with R Stick up/down respectively, and stop and stay at it’s current point once the buttons are not pressed, and I also need it to stop moving if up is pressed when min value is reached OR if down is pressed and max value is reached.
-
I just realized by wiring the Min/Max Piston Values to the Number Displayer that the full value is only shown when the R Stick is pressed fully, so it has nothing to do with the start or end point of the Piston.
Is there any way to get those values then?
Please sign in to leave a comment.