Beispiel #1
0
/* http://steamcommunity.com/sharedfiles/filedetails/?id=360966557 */
        void Main()
        {
            List <IMyTerminalBlock> blocks = new List <IMyTerminalBlock>();

            GridTerminalSystem.GetBlocksOfType <IMyRadioAntenna>(blocks);
            if (blocks.Count == 0)
            {
                return;
            }
            IMyRadioAntenna antenna = blocks[0] as IMyRadioAntenna;

            antenna.SetCustomName("Hello Galaxy!");
        }