Space Engineers

Space Engineers

Not enough ratings
电梯控制 | Elevator control
   
Award
Favorite
Favorited
Unfavorite
File Size
Posted
1.029 KB
19 Jun, 2018 @ 11:29am
1 Change Note ( view )

Subscribe to download
电梯控制 | Elevator control

Description
You need to set the height you want to go in the run parameters.You can set it in every button.Just enter the Numbers.
//-----------VV--------These can be modified-------------VV-------------------------------------------------------------------------------------
//-----------VV--------这些可以修改-------------------------VV-------------------------------------------------------------------------------------
float speed = 2 ; //Speed of movement.移动的速度.
string name ="Elevator Piston"; //Name of piston.活塞的名字
string doorname ="Elevator Door"; //The name of the door.门的名字


6 Comments
jamstraz 13 May @ 3:51pm 
Code goes ka-boom
KeepGood 1 Apr, 2023 @ 6:06pm 
Yeah it's throwing an exception. It runs once for me then errors.
BroedipusRex 28 Jul, 2018 @ 4:16pm 
New update seems to have broken this code. No errors when compiling or running, the piston will just go to 10 meters and never stop.
不言丶  [author] 15 Jul, 2018 @ 7:39pm 
@BroedipusRex
It can be used with other pistons.
BroedipusRex 15 Jul, 2018 @ 3:26pm 
I'm fairly sure the reason was because I didn't have a number in the argument box when running it. You might want to explain that the arguments are the distance in meters the elevator will go to. If you need help with English translation, I can try to help! I am only fluent in English, but I can help you write the description if you're interested. Your mods are all really cool :).

Also I think this mod will work for any piston? I really like your model, but my base is 150m high so I need three elevators, which is unfortunate.
BroedipusRex 13 Jul, 2018 @ 7:44pm 
When I try to run this it says "Caught exception during execution of script; Input string was not a correct format." Also the elevator kills me :P.