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

object reference no set to a instance of object

$
0
0
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

Viewing all articles
Browse latest Browse all 903

Trending Articles