Space Engineers

Space Engineers

65 ratings
Missile Status Script
   
Award
Favorite
Favorited
Unfavorite
File Size
Posted
Updated
3.047 KB
12 Jun, 2016 @ 2:29am
20 Nov, 2017 @ 5:12am
16 Change Notes ( view )

Subscribe to download
Missile Status Script

Description
This script is used together with the Easy Radar Homing Script, to get the missile lock-on status:

Easy Lidar Homing Script can be found at:
http://sp.zhabite.com/sharedfiles/filedetails/?id=807454034


NOTE: Timer Block no longer required! Script loops itself automatically.


How To Use

1) Load the script into a Programmable Block.

2) Configure the script using Custom Data (See screenshots below on how to configure these variables). Below is the list of configurable parameters:.

strComputerTag
Name tag of the Programmable Blocks loaded with the Easy Lidar Homing Script.

strStatusPanelMainTag
Name tag of the Text Panel to display missile lock-on status.

strStatusPanelExtendedTag
(Optional) Name tag of the Text Panel to display missile GPS target information.

strMissileLockAlertTag
(Optional) Name tag of the Block to trigger when missile is locked on.

strMissileLockAlertAction
(Optional) Action name to trigger strMissileLockAlertTag (i.e. TriggerNow, OnOff_On, PlaySound etc, depending on the block). If the block is a Programmable Block, it will Run it and pass in this value as Argument.

strMissileLockAlarmBlocksTag
(Optional) Name tag of the Block to turn on for X duration, then turn it off (where X is missileLockAlarmBlocksDuration).

missileLockAlarmBlocksDuration
(Optional) Duration in seconds to turn on the strMissileLockAlarmBlocksTag block.

refreshInterval
(Optional) The number of ticks before each update.






Each variable must be specified in the following format, with each one on a new line:

<VARIABLE1>=<VALUE1>
<VARIABLE2>=<VALUE2>
<VARIABLE3>=<VALUE3>


Example:

strComputerTag=Missile Computer
strStatusPanelMainTag=Status Panel
strStatusPanelExtendedTag=GPS Display Panel
strMissileLockAlertTag=Lock On Alarm
refreshInterval=15



Notes

- If you have welded a new set of missiles, use the command RESET to reload the missiles (Setup a Toolbar action to trigger the Run Action of the Programmable Block with the Argument as RESET).
29 Comments
gamefoo 23 Feb, 2020 @ 5:38am 
Amazing script that could use an update. The call for "WritePublicText" was changed to just be "WriteText" and that will fix compile errors, but just changing those does get output to text or lcd panels defined in Custom Data. Also make sure your text/lcd panels have their "Content" info set to "Script" in terminal (at least that helped get some type of output). Correct me if I'm wrong.
Fulcrum 4 Jan, 2020 @ 3:57am 
Maxamillion 3 Nov, 2019 @ 12:30am 
can we please get an update to this script please
halogoose4 7 Oct, 2019 @ 7:48pm 
Is this still wroking, when I try to load this script it throws a bunch of errors.
Alysius  [author] 14 May, 2019 @ 6:54pm 
Yea only one panel supoort at the moment.
The Creacher 10 Mar, 2019 @ 8:53am 
Is this able to output to multiple displays?

I have two displays with the name "Status Panel" configured exactly the same, but only ONE of the displays updates properly, the other one seems to get the IDLE status, but not update at all, even when running the RESET command.
Alysius  [author] 20 Jul, 2018 @ 8:50pm 
@thefinn Stalker Spacefighter and some of my Mobile SAM uses this, so you can examine those too. And thanks too.
thefinn88 20 Jul, 2018 @ 4:54pm 
Amazing system you got here, as I play with it more I realise how configurable and adaptable it is.

Being able to fire missiles from a tube which fly straight for 10 seconds before starting to home in, allows for more missiles to be in space on their way to the target before he might even be aware you're there.

Then firing for instant lockon through turret designation allows for very strong defence if you're at close range.

Throw down some timer blocks to fire one launcher after another at pre-defined GPS co-ordinates for planetary bombardment - I haven't tested this yet.

Being able to change the entire sytem based on different fire control blocks is awesome.

Great job.
thefinn88 20 Jul, 2018 @ 4:20pm 
Got it. I did something dumb ;)
thefinn88 16 Jul, 2018 @ 1:58pm 
Got an example world for this you can put up?
(Doesn't have to be flash looking)