Space Engineers

Space Engineers

Launch Control Script
WallE 29. maj 2016 kl. 13:20
Wanted to comment, but the charlimitation has forced me to use this here.
Would be cool if this works like the cruise missile script for the gps panel.

You had this on the Glaive S with the Target Selection Script. There was a panel named "CMD" and the public title from this panel were drecting to another panel (CMD_TARGET_1, CMD_TARGET_2 ... etc.) with the gps points in the public title.
This would be easier for having less buttons on the actionbar.


It was around here in the cruise missile script there it gets the public title(gps points) from a text panel that it got from another text panel's public title(providing the name of the text panel with the gps points in the public title).
void Main(string arguments) { //---------- Initialization And General Controls ---------- if (!init) { if (boolDispatchMode) { if (mode == 0) { bool useArgumentAsDispatch = (arguments != null && arguments.Length > 0); if (commandPanel == null) { commandPanel = GridTerminalSystem.GetBlockWithName(strCommandBlock) as IMyTextPanel; } if (commandPanel != null || useArgumentAsDispatch) { string strDispatchPanel = (useArgumentAsDispatch ? arguments : commandPanel.GetPublicTitle()); if (strDispatchPanel.Length > 0) { IMyTextPanel dispatchPanel = (IMyTextPanel)GridTerminalSystem.GetBlockWithName(strDispatchPanel); if (dispatchPanel != null) { if (oneTimeCommand.Length > 0) { oneTimeCommand = CombineCommandLine(commandPanel.GetPrivateTitle().Trim(), oneTimeCommand); } else { oneTimeCommand = commandPanel.GetPrivateTitle().Trim(); } commandPanel = dispatchPanel; boolNoConsumeCommand = true; mode = -1; }

Sry for the bad english. It's not my native language.
< >
Viser 1-3 af 3 kommentarer
Alysius  [udvikler] 5. juni 2016 kl. 21:33 
This new script is compatible for the easy radar homing script. The old method of reading for dispatch panel name is no longer supported. Since building in that support into the easy radar homing script will make it require a text panel on startup. Some modes do not need text panel atm.
Alysius  [udvikler] 29. dec. 2016 kl. 4:41 
Oh actually such feature exists. When you trigger the launch control script, you can trigger the Run as default Argument, or just Run (with arguments). The Argument can preset some configuration.

R_TAR:<Panel Name>

Example, you want to launch missile in Cruise Mode and read from CMD_TARGET_1, the Argument you passed to the script is:

MODE:4,R_TAR=CMD_TARGET_1
Alysius  [udvikler] 29. dec. 2016 kl. 4:42 
Whatever arguments you pass to the launch control script will be exactly replicated to the missile Run Argument once before launch.
< >
Viser 1-3 af 3 kommentarer
Per side: 1530 50