Space Engineers

Space Engineers

39 ratings
Ship Aligner
   
Award
Favorite
Favorited
Unfavorite
File Size
Posted
Updated
29.615 KB
10 Jun, 2018 @ 6:24am
23 Apr, 2019 @ 6:41am
3 Change Notes ( view )

Subscribe to download
Ship Aligner

Description
Note : If you get a runtime error, please clear Custom Data on LCD and PB.

What is this?
This script aligns the ship to the object in the direction the camera is facing.

Setup
1.Building 1 Programmable Block on ship, and load this script in Programmable block.
2.Set PB in Quick Slot as "Run", write "Pitch+" and "Pitch-" and "Yaw+" and "Yaw-" in the text box.
3.Write "Cockpit" in the cockpit or RC block's custom data.This is no longer needed.
4.Place 1 Landing gear or Connector or Merge block and 1 camera in the same direction.
5.Write "Connecting" in the Landing gear/Connector/Merge block's custom data.
(Optional)When you want to invalidate gravity alignment, write "IgnoreGravity" behind "Connecting".
6.Write "Camera" in the camera's custom data.
7.Write "LCD" in LCD or Cockpit custom data.
8.Change "Index=0" number to specify the desired LCD.
-Index number is 0 ~ (LCD count). So if you want to display on second LCD in the cockpit, you need to set "Index=1".
(Optional)If the display is off-center, adjust the SurfaceSize value in LCD/Cockpit Custom Data.

How to use?
1.Approach the camera toward the block. The ship automatically aligning to fit the target block.
2.If you grabbed a block within the natural gravity, The ship maintains its level against gravity.
16 Comments
FHN 15 May, 2022 @ 7:07am 
my understanding of the instructions is complicated by my poor knowledge of the language.
FHN 15 May, 2022 @ 7:07am 
a few noob questions
Does the script work with new magnetic plates, and I don't quite understand the 2nd line, where should I enter this?
Blacky Watchy 20 Apr, 2021 @ 7:21am 
also, is there a way to make it to align faster? i need to something at 100m/s aligns as much as it can with the grid in 0.5 seconds...
Blacky Watchy 20 Apr, 2021 @ 7:00am 
i dont get for what is step 2. what command i need to it just to align, or i have to trigger the change on the alighment manually?
Selphadur 23 Feb, 2020 @ 5:53pm 
Do not know if it actually works as it does not show anything on LCD. Any thoughts? Done exactly as information suggests. Also LCD is Text/Image mode.
Pounce 12 Sep, 2019 @ 4:02am 
I do not really understand set up, especially the part what hot bar buttons to set up and how they are supoosed to work, it works but i never know why and what it does so more hit and run
CTH2004 20 Feb, 2019 @ 6:57pm 
Nice!

Love It!
Diego 12 Feb, 2019 @ 10:55pm 
ahh and you need to replace one of the radiants in the script with yours
Diego 12 Feb, 2019 @ 10:54pm 
@amsedal uhh thats quite some time ago but if you google : rad deg converter you can look what radiant you need (for example 90° are 1,5708 Radiant) you need to experiment a bit with what you need but if i remember it was 45°
amsedal 12 Feb, 2019 @ 10:50pm 
@Ezio - this is something I would like to do as well .. can you tell me what you did? It would probably help if I looked at the script, but I just saw this and I don't know much about programming anyways.. was this an easy fix? Could you explain a little more what you did to set custom angles?