I'm trying to read the state of a door (open, closed, opening, closing).
When I run the following code....
... I get an error :
Error thrown when querying door statuses
When I run the following code....
Code:
public void Main()
{
var door = GridTerminalSystem.GetBlockGroupWithName("Airtight Hanger Door 1") as IMyDoor;
if(door.Status == DoorStatus.Open)
{
Echo("Door is open");
}
}
Code:
Caught exception during execution of script: Object reference not set to an instance of an object. at Program.Main() at...