Space Engineers

Space Engineers

65 arvostelua
Missile Status Script
   
Palkinto
Lisää suosikkeihin
Lisätty suosikkeihin
Poista suosikeista
Tiedostokoko
Julkaistu
Päivitetty
3.047 KB
12.6.2016 klo 2.29
20.11.2017 klo 5.12
16 muutosilmoitusta ( näytä )

Tilaa ladataksesi
Missile Status Script

Kuvaus
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://psteamcommunity.yuanyoumao.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 kommenttia
gamefoo 23.2.2020 klo 5.38 
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.1.2020 klo 3.57 
Maxamillion 3.11.2019 klo 0.30 
can we please get an update to this script please
halogoose4 7.10.2019 klo 19.48 
Is this still wroking, when I try to load this script it throws a bunch of errors.
Alysius  [tekijä] 14.5.2019 klo 18.54 
Yea only one panel supoort at the moment.
The Creacher 10.3.2019 klo 8.53 
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  [tekijä] 20.7.2018 klo 20.50 
@thefinn Stalker Spacefighter and some of my Mobile SAM uses this, so you can examine those too. And thanks too.
thefinn88 20.7.2018 klo 16.54 
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.7.2018 klo 16.20 
Got it. I did something dumb ;)
thefinn88 16.7.2018 klo 13.58 
Got an example world for this you can put up?
(Doesn't have to be flash looking)