Space Engineers

Space Engineers

71 ratings
Trajectory Missile Script
   
Award
Favorite
Favorited
Unfavorite
File Size
Posted
Updated
11.504 KB
Aug 15, 2017 @ 5:44am
Apr 11, 2018 @ 7:03am
13 Change Notes ( view )

Subscribe to download
Trajectory Missile Script

Description
Missile script used by my <Any>storm Missile Platform. It circumnavigates the planet and freefalls when reaching its target.



How To Use

1) Build a Programmable Block and load this script.

2) Ensure missile have these blocks:

- At least one Gyroscope.
- One Remote Control.
- Enough backward facing main Thruster for propelling missile forward.
- Enough downward facing Thruster for dampening gravity.

3) Paste GPS Coordinates to the Argument of the Programmable Block, then click Run button to launch missile.

3A) Alternatively, you can have a Text Panel name containing R_TARGET tag, then paste the GPS Coordinates to the Title of this Text Panel and click Run button of the Programmable Block to launch missile.

3B) You can use Launch Control Script to launch this missile too. Script can be found at:
https://steamcommunity.com/sharedfiles/filedetails/?id=691441036



Customizing Your Missile's Behavior

You can add the following lines to the Custom Data of the Programmable Block to specify different configuration.


Trajectory Mode

Add this line to specify Trajectory Mode:

missileTrajectoryType=<mode>

Where <mode> refers to:

0 = Frefall To Target With Aiming (For Cluster Bomb Deployments)
1 = Frefall To Target Without Aiming (For Cluster Bomb Deployments)
2 = Thrust And Home In To Target


Detach Type

Add this line to specify Detach Type:

missileDetachPortType=<type>

Where <type> refers to:

0 = Merge Block
1 = Rotor
2 = Connector
3 = Merge Block And Any Locked Connectors
4 = Rotor And Any Locked Connectors
99 = No detach required


Missile Deployment Procedures

Add this line to specify what to perform when missile makes its final descend to target:

missileDeployCommand=<commands line>

Where <commands line> refers to:

Has the same set of commands as the Missile Deployment Commands Section of the Easy Lidar Homing Script's Guide (Although this script has much more than it, the full guide is in the making still):
https://steamcommunity.com/sharedfiles/filedetails/?id=1211340504

<More Customization Tutorials Coming Soon>



Important Notes

1) If downward thrusters have more thrust values than backward facing thrusters, you need to add this line to the Custom Data of the Programmable Block:

strDirectionRefBlockTag=Remote Control

Assuming the name of your Remote Control is as such (change Remote Control name accordingly). Remote Control MUST be mounted correctly, with front facing your intended missile front.
75 Comments
5UP3R TH30 B4G Jan 4 @ 2:26pm 
I've finished a launch pad and it will be soon on the workshop! It will come with the functioning ICBM
awesome thank you!
5UP3R TH30 B4G Jan 2 @ 3:22am 
Im working on a ICBM and it works ! Im also working on a cluster so I will tell here when im done and on the workshop
THE EXE DUDE Oct 24, 2024 @ 6:44am 
if it overshoots the target i recommend using it along with the missile guidance block from terran titans tactical warfare blocks and putting some event controllers to when it reaches a lower altitude it locks and launches the missile i have a workshop ballistic nuclear missile that works that way u can subscribe and try coping the missile system
Rightraoedhelontidae Minima Oct 21, 2024 @ 6:05am 
Does anyone have a tutorial/working cluster missile to understand how it works
ericbekert Sep 16, 2024 @ 12:45pm 
someone can share me a blueprint only for the missile?
Rightraoedhelontidae Minima Jun 22, 2023 @ 12:09pm 
Works perfectly for Ground to Ground, love it! Thank you so much :steamthumbsup:
Harry Spotter Feb 24, 2023 @ 8:09pm 
Always overshoots target. Any tcommendation for setting to prevent that ? otherwise that script si perfect
M200Chan Jul 29, 2022 @ 7:12am 
Just to clarify, this is only for intercontinental missiles, correct? As in, the missile cannot fly from space to Planet A (or vice versa), or from Planet B to Planet A?
Scopsins Dec 9, 2021 @ 3:03pm 
Yea not broken for me as well!