Just to learn a bit, i tried to program a script to lock off areas which get depressurized (idea taken from MMaster's script), but i always seem to get the same error: "Caught exception during execution of script:Object reference not set to an instance of an object", here's the code:
Having an error with my Pressure Locking script
Code:
void Main(String argument) {
String[] args = new String[2];//argument.Split(',');
args[0] = "pres";
args[1] = "90";
List<IMyTerminalBlock> blocks = new List<IMyTerminalBlock>();
List<IMyAirVent>...