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

Having an error with my Pressure Locking script

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

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>...
Having an error with my Pressure Locking script

Viewing all articles
Browse latest Browse all 903

Trending Articles