Space Engineers

Space Engineers

Codius's Basic Piston Control
20 Comments
Codius Hilol  [author] 6 Dec, 2019 @ 11:21am 
It's been about 2 years since I originally wrote this script. But it should be possible by just changing what action is performed when you press the mapped buttons.
LASSIE 6 Dec, 2019 @ 10:39am 
Nice script. Is this also possible with Rotors?
Codius Hilol  [author] 29 Aug, 2019 @ 2:56pm 
Did you also set the piston group?
Codius Hilol  [author] 29 Aug, 2019 @ 2:55pm 
By default it uses whatever your "jump" and "crouch" keys are. These are spacebar and c by default I believe.
MattPlaysSimulations 29 Aug, 2019 @ 2:51pm 
@Codius, its selecting the correct cockpit. it just doesnt work
Codius Hilol  [author] 29 Aug, 2019 @ 2:40pm 
It should be looking for occupied cockpits every 10 seconds and setting the "controller" to that. It's been over a year since I wrote this logic originally, so I may not remember exactly.
MattPlaysSimulations 29 Aug, 2019 @ 12:31am 
Also how do i set it to one cockpit only?
MattPlaysSimulations 29 Aug, 2019 @ 12:30am 
Im stummped. IDK why but im using this script and I can get the piston to work using a cockpit on another ship via connector but when using the cockpit on the station it wont move at all. Ive tried all different directions
InvolvedSpark 6 Jan, 2019 @ 4:38am 
Did some fiddling about with it in an attempt to make a crane for repairing vehicles. You do need to change WASD.Y to WASD.Z for the input to be W and S, instead of space and C. Unsure about W and A, unless that was a typo.
Codius Hilol  [author] 23 Oct, 2018 @ 8:54am 
You can indeed. It’s been a while, but you might be able to change WASD.Y to X or Z maybe. I’ll have a look when I am not busy.
Eddy 23 Oct, 2018 @ 7:35am 
I got it! Its working flawlessly. Just changed the speed values on second cript to make it retract on extend and extend on retract :) Now. Can I change the output from jump croch to W and A? Where and how. I found the line for WASD.Y input and (upward, jump) but dont know what to exactly do
Eddy 22 Oct, 2018 @ 3:14am 
Thats smart ^_^ Gonna try
Codius Hilol  [author] 21 Oct, 2018 @ 6:15pm 
Actually, yes. You’d need two instances of the script running with two different piston groups. Modify the second script to use the new group and change the signs of the directions. All variables are at the top.
Codius Hilol  [author] 21 Oct, 2018 @ 6:09pm 
Unsure. I would have to take a look into what can be done with pistons again.
Eddy 21 Oct, 2018 @ 5:11pm 
What if I want to control two pistons a opposite way to each other. One extending while other is retracting :)
Codius Hilol  [author] 2 Jul, 2018 @ 11:13pm 
This script handles extending and retractng pistons with the up and down (spacebar and c) controls from a cockpit. You can set a constant speed relatively easily with basic button panel controls, if I remember correctly.
epizoon 2 Jul, 2018 @ 7:45pm 
I don't understand how you actually control the pistons in this script. I am looking to have a button panel where button 1 starts the drills and extends the 5 pistons in a drilling speed. button 2 should shut off the drills and retract the 5 pistons. How do i make this possible? I've follow the instructions precisely, however nothing. Have also tried numerous other scripts to try and achieve this to no avail.
Codius Hilol  [author] 15 Feb, 2018 @ 9:27pm 
Thanks! Please do leave suggestions as to how I might tweak it or give me suggestions for other simple little scripts I could practice with and I'll look into making it happen.
nubeees 15 Feb, 2018 @ 9:12pm 
Going to have to give this a try. The demo video was pretty neat
Whiplash141 11 Feb, 2018 @ 7:06am 
Neat coding style ;)