Space Engineers

Space Engineers

Not enough ratings
Automatic Landing Gear Extender
   
Award
Favorite
Favorited
Unfavorite
File Size
Posted
Updated
1.226 KB
5 May, 2018 @ 11:54am
5 May, 2018 @ 12:45pm
2 Change Notes ( view )

Subscribe to download
Automatic Landing Gear Extender

Description
This is a script that allows you to evenly extend the "legs" of your ship/creation.
What I mean is that if you have a ship with landing gears mounted on pistons, this script will extend each piston until the landing gear on it can be locked. And then it locks the landing gear of course :D

I will refer to one piston and its landing gear as a "leg" from now on.

How to use:
The script has 3+1 arguments. The first one is the number of legs, the second one is an action*, and the third one is the velocity of the pistons (absolute). The fourth one is optional, it is a prefix for the pistons and landing gears the script is allowed to use.

*Currently if the action is "Extend" then the script will extend the legs, if it is "Retract" it will retract them. Otherwise it stops (switches to stand by mode).

The pistons and landing gears must be named like this:
Piston names:[prefix**]Piston [number***]
Landing Gear names:[prefix**]Landing Gear [number***]

**The prefix can be "", if you don't give it as an argument, "" is default.
***The number must start with 1 and there must be a numbered leg for each number smaller or equal than the number of legs.

<Example>
Ship with 2 legs has the following blocks:
[Leg] Piston 1
[Leg] Landing Gear 1
[Leg] Piston 2
[Leg] Landing Gear 2

The script runs with the argument: |2, Extend, 3, "[Leg] "| (without the '|' -s)
This means that the pistons will extend with 3 m/s velocity

The script runs with the argument: |2, Retract, 3, "[Leg] "| (without the '|' -s)
This means that the pistons will retract with -3 m/s velocity.

NOTE: After extending, the pistons will remain under the control of the script until you give the command to retract or put the script in stand by mode.


If the script breaks, don't expect me to fix it. I may and I probably will, but if not don't complain pls.
2 Comments
woostyboy 10 May, 2018 @ 7:47am 
Cool..... Self leveling script and this.... HAB drop pods that self level then lock in place!
Spite 5 May, 2018 @ 2:21pm 
excellent, been looking for something like this, thank you!