Space Engineers

Space Engineers

Escape Pod
Survival Ready  [developer] 21 Dec, 2021 @ 2:08pm
Return to Mothership
To demonstrate the scenario, you need to fly at least 200 m away from the SE Mothership on the shuttle and press #6 on the #2 digital control panel in the cockpit.

The shuttle sends its GPS coordinates to the SE Mothership via a radio antenna and waits for a response from it indicating GPS coordinates along the vector connecting the centers of mass of the ships.

After that, the destination point is entered into the autopilot and the shuttle flies towards the carrier at a speed of 25 m / s in the "avoid collision" mode.
@fly_in { * sending coordinates to the carrier Send = "SE Mothership:@call_shuttle(\my,GPS:\pos:#)" * waiting for a response 0.5 sec Delay 500 * if the message is for the shuttle if Value of rec ? \my { * and there are coordinates in GPS format if Value of rec ? "GPS" { * set their autopilot and fly at a speed of 25 m / s to the carrier Fly to \rec at 25 Fly Start } else { Write to Echo = "No GPS coordinates" } Send Clear } else { Echo = "Space silent" } }
Last edited by Survival Ready; 21 Dec, 2021 @ 2:09pm