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

How do I compare a block property/how do I find it?

$
0
0
Hello everyone,

noob question here. I'm basically programming my own airlock script and want to check if the exterior airlock door is open. But I've got no clue how I can actually check that property. My idea was something like this:
Code:
IMyTerminalBlock ExteriorAirlockDoor1 = GridTerminalSystem.GetBlockWithName("Exterior Airlock Door 1");

if(ExteriorAirlockDoor1.Open==true)
{
 //do stuff
}
That doesn't compile, but how do I call on the "Open" property of the Doors?


I've...

How do I compare a block property/how do I find it?

Viewing all articles
Browse latest Browse all 903

Trending Articles