i have the code:
var nf = GridTerminalSystem.GetBlockWithName("Nanite Control Factory "+argument) as IMyTerminalBlock;
string[] NFStat = {""};
But when theres no block it return a error and the script stop, i want to get this object if it exist
var nf = GridTerminalSystem.GetBlockWithName("Nanite Control Factory "+argument) as IMyTerminalBlock;
string[] NFStat = {""};
But when theres no block it return a error and the script stop, i want to get this object if it exist