Space Engineers

Space Engineers

Not enough ratings
KaienFlyByScript
   
Award
Favorite
Favorited
Unfavorite
File Size
Posted
Updated
6.837 KB
14 Sep, 2017 @ 5:49pm
15 Oct, 2017 @ 2:25am
7 Change Notes ( view )

Subscribe to download
KaienFlyByScript

Description
Sorry my english is poor..

This script can make an aircraft FLY BY the mother ship.

For the mother ship, which you control it directly. you need:
1 radio antenna. (laser antenna will NOT work!)
1 ship controller. (cockpit, flight seat, or remote control)
1 programmable block
1 timer

load this script to the programmable block.
write these lines to the custom data of the programmable block. then set the timer to loop this programmable block.


motherCode=2nd
CockpitNameTag=<your ship controller name>
stAName=<your radio antenna name>
LCDNameTag=<your lcd name>



For the fly by ship, which will controlled by the script automaticly, you need:
all 6 direction thrusters. you can have more than one thruster for each side.
1+ Gyroscope
1 radio antenna
1 ship controller
1 programmable block
1 timer
1 lcd panel (named LCD, set show text to ON, sorry this one's name can not be modified)

the same as before.
load this script to the programmable block.
and write these lines to the custom data of the programmable block.
then set the timer to loop this programmable block.

sonCode=1st
stAName=Antenna 2
CockpitNameTag=Cockpit
LCDNameTag=LCD
flyByDistance=50
upMode=true
flyByOffsetDirection=RIGHT
flyByForwardDistance=150
flyByUpDistance=-50
dockingForward=FORWARD
dockingUp=UP
dockingLeftDistance=-4.75
dockingUpDistance=-20.07
dockingForwardDistance=54.90

and, IMPORTANT. Open the settings of the antenna on the flyby ship, set "Assigned programmable block" to the programmable block which you load and run the script.

if every thing is right. you will see two lines on the lcd of the flyby ship:
伴飞: 关
<your position to mother ship>

if you move your flyby ship by your self (neer to the mother ship). you see that number change.

and the final step. Add a shot cut button to the flyby ship controller to turn the automatic control ON/OFF.
when you control the flyby ship, (by cockpit, flight seat or remote control), press G, find your programmable block. and drag it to you shotcut bar. select "RUN", and input "FLYBY" in the input box for arguments.

and then, press that button, you will see the first line of the LCD change to
伴飞: 开

and you fly by ship will automaticly fly to its position.

you can leave the flyby ship, return to you mother ship. and drive it to any where you want~ see the flyby ship can do~

you can also use "DOCKING" as the arguments of your drone's programmable block. on you control bar. and this will turn on/off docking mode. when docking completed. it will automaticly turn off your thrusters and spotlight~

HAVE FUN!

if you have any suggestion, or find any issue for this script, please leave the message below. thank you.

custom data sample for son ship:

sonCode=1st
stAName=Antenna 2
CockpitNameTag=Cockpit
LCDNameTag=LCD
flyByDistance=50
upMode=true
flyByOffsetDirection=RIGHT
flyByForwardDistance=150
flyByUpDistance=-50
dockingForward=FORWARD
dockingUp=UP
dockingLeftDistance=-4.75
dockingUpDistance=-20.07
dockingForwardDistance=54.90

custom data sample for mother ship

motherCode=2nd
stAName=Antenna 2
CockpitNameTag=Cockpit
LCDNameTag=LCD

v1.0 change:
1. use motherCode and sonCode to match up mother ships and drones
2. added up offset and forward offset
3. added upMode
4. added docking mode
8 Comments
wu.will.china  [author] 5 Jun, 2021 @ 8:01pm 
sorry, this script is outdated. please try to use https://steamproxy.net/sharedfiles/filedetails/?id=1406061291 instead.
Ericsin 3 Jun, 2021 @ 11:03am 
Hello and good day!!
I get an error message stating "Assembly not found. please compile script."
please help me get this working again.
still_MORTAL 11 Jul, 2020 @ 11:21pm 
为什么我总是显示找不到组件,Open the settings of the antenna on the flyby ship, set "Assigned programmable block" to the programmable block which you load and run the script有人知道这个是怎么操作的么
Mijitninja 14 Oct, 2019 @ 11:09am 
I could use a little help. when I activate the script on my drone it just spins and never seems to recieve the position of the mothership. any advice?
超级气球need u 13 Aug, 2018 @ 11:56pm 
请问有没有母船停止子船伴飞或着陆的指令?FLYBYON只能开不能关
woostyboy 24 Mar, 2018 @ 8:12am 
Wow, thank you.
wu.will.china  [author] 24 Mar, 2018 @ 1:10am 
yes, it can do it.
woostyboy 15 Mar, 2018 @ 4:21am 
Can you use the script to dock onto a moving large grid ship? Thanks.