Space Engineers

Space Engineers

评价数不足
Remote executor
   
奖励
收藏
已收藏
取消收藏
文件大小
发表于
707.000 B
2018 年 1 月 8 日 上午 8:13
1 项改动说明 ( 查看 )

订阅以下载
Remote executor

描述
/*
* @Author ItsReddi
* Small script to execute timerblocks on remote ship or station
* You'll need:
* - an antenna on each transmitter & receiver
* - antenna's should have active signal, antennas should have the your pb as assignment
* - on each transmitter the following script in a PB:
*void Main(string argument)
*{
* var a = GridTerminalSystem.GetBlockWithName("YOURANTENNANAMEHERE") as IMyRadioAntenna;
* a.TransmitMessage(argument, MyTransmitTarget.Everyone);
*}
*
* Replace YOURANTENNANAMEHERE after that you can execute your transmitters pb with the timers name as argument.
* For example if you have a timerblock with the name hangardoors on your base set hangardoors as argument on transmitter
* Be aware ANYONE on a server can execute your timerblocks if you use this ;)
*/
8 条留言
Hage Maoh 2020 年 12 月 11 日 下午 2:46 
Anyone know of an updated version of this that works after Keen's changes to antenna communication api?
Sagi 2018 年 3 月 11 日 上午 5:33 
It's not working, it can only activate timer blocks on it's own grid..
I'm currently using FARTS sender and receiver but i dislae the fact that you need 2 seperate sripts.
p.s. is it not possible ta let the PB check for any antenna's so you don't have to change the antenna name in the script every time?
Reddi  [作者] 2018 年 2 月 28 日 上午 4:21 
@evarate then you have copied something wrong, anything you have to replace is in CAMELCASE, i did not thought that someone is interested in this. may i'll make a short video tutorial at some time
Gorgeous Freeman 2018 年 1 月 23 日 上午 11:07 
Hey, the PB says "Main method not found. Please add Main method into script." when I compile the script at the transmitter PB. Also did I understand it right that only the transmitting grid/ship has to have the code in a PB? And is "MyTransmitTarget" the name of the other antenna?
Flygtur 2018 年 1 月 16 日 下午 5:05 
Nice! Is it possible to have a chat window on an lcd with another grid? Like an hail Star Trek type conversation but in text form?
CTH2004 2018 年 1 月 15 日 下午 3:30 
@mysteriousdots , you can use timer blocks to triger Anything, such as timing an airlock. No PB's, but still timer blocks. This would alllowyou to use it remotly. I personally like it.

Thanks Reddi
Reddi  [作者] 2018 年 1 月 11 日 上午 11:04 
Hmm.. and? This script has nothing to do with it
Dots 2018 年 1 月 8 日 上午 11:09 
timer blocks are a thing of a past now. PB's auto update without timer blocks!