Space Engineers

Space Engineers

65 个评价
Missile Status Script
   
奖励
收藏
已收藏
取消收藏
文件大小
发表于
更新日期
3.047 KB
2016 年 6 月 12 日 上午 2:29
2017 年 11 月 20 日 上午 5:12
16 项改动说明 ( 查看 )

订阅以下载
Missile Status Script

描述
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 条留言
gamefoo 2020 年 2 月 23 日 上午 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 2020 年 1 月 4 日 上午 3:57 
Maxamillion 2019 年 11 月 3 日 上午 12:30 
can we please get an update to this script please
halogoose4 2019 年 10 月 7 日 下午 7:48 
Is this still wroking, when I try to load this script it throws a bunch of errors.
Alysius  [作者] 2019 年 5 月 14 日 下午 6:54 
Yea only one panel supoort at the moment.
The Creacher 2019 年 3 月 10 日 上午 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  [作者] 2018 年 7 月 20 日 下午 8:50 
@thefinn Stalker Spacefighter and some of my Mobile SAM uses this, so you can examine those too. And thanks too.
thefinn88 2018 年 7 月 20 日 下午 4: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 2018 年 7 月 20 日 下午 4:20 
Got it. I did something dumb ;)
thefinn88 2018 年 7 月 16 日 下午 1:58 
Got an example world for this you can put up?
(Doesn't have to be flash looking)