badfeed.blogg.se

Download space engineers programmable block
Download space engineers programmable block





download space engineers programmable block

Var hangarGroup = GridTerminalSystem.GetBlockGroupWithName("Hangar 1") GridTerminalSystem.GetBlocksOfType(antennas) Īntenna.CustomName = "WARNING! SELF DESTRUCT IN 3 SECONDS" Īntenna.SetValue("IsBroadcasting", true) GridTerminalSystem.GetBlocksOfType(warheads) Your script needs to be able to handle anything at all in the argument, so make sure to use safe design patterns like try/catch and TryParse instead of straight Parse. This was a necessary restriction to prevent PB running too many times in a tick, and it also makes it much easier to have bi-directional communication.ĭo note that you could possibly receive malicious, malformed, or just unknown data.

download space engineers programmable block

If you try to transmit again in the same tick, the TransmitMessage method will return false. This means that each antenna can only transmit once per tick. / Ignores broadcasts sent by neutral and enemy antennaįor both antenna types, when you call TransmitMessage, your transmission is queued for the beginning of the next tick.

download space engineers programmable block

/ Ignores broadcasts sent by friendly antenna that do not belong to you / Returns false if broadcasting failed for any reason.īool TransmitMessage( string message, MyTransmitTarget target = MyTransmitTarget.Default ) / Broadcasts a message to all PB attached to the antenna system. Public interface IMyRadioAntenna : IMyFunctionalBlock Here's the (truncated) laser antenna interface: Of course, laser antenna can only be connected to one other antenna at a time, so communications through laser antenna is completely secure and undetectable. Laser antenna are simpler, so I'll address them first. Simply select the PB you want to attach to the antenna, and when the antenna receives a message, it will run the selected PB with the message as the argument. In the terminal for both types of antenna, you will find a drop-down box that contains all the programmable blocks on the grid. While you pick your collective jaws up from the floor, let's show some love for who helped design this system, and for providing so much feedback that I ended up rewriting everything <3

download space engineers programmable block

We said it was never gonna happen, but we have to keep you on your toes now, don't we? -) Programmable blocks can now utilize the antenna system to send data to other grids. The single most requested feature for PB is now happening.







Download space engineers programmable block