Quantcast
Channel: Programming (In-game)
Viewing all articles
Browse latest Browse all 903

[noob] Weird error with programmable block

$
0
0
I have the following script on a programming block in my world:

Code:
void Main(string argument)
{
    List<IMyTerminalBlock> blocks = new List<IMyTerminalBlock>();
    GridTerminalSystem.SearchBlocksOfName("(hydrostats)", blocks);
    StringBuilder sb = new StringBuilder();
    foreach (IMyTerminalBlock b in blocks) {
        sb.Append(b.Name);
        sb.Append("\n");
    }
    string s = sb.ToString();
    foreach (IMyTerminalBlock b in blocks) {
        IMyTextPanel panel = b as...
[noob] Weird error with programmable block

Viewing all articles
Browse latest Browse all 903

Trending Articles