EDIT Thanks to the help of the users in the thread, I've figured out how to accomplish my task. Thanks guys!
Here's the code. It's got more lines of code compared to the slick things the other users did, but writing it this way has helped me understand casting better.
Disabling doors that are closed/understanding GetBlocksOfType
Here's the code. It's got more lines of code compared to the slick things the other users did, but writing it this way has helped me understand casting better.
Code:
/* The purpose of this script is to disable the use of all doors that are closed. */ void Main() { //create a new list of all IMyTerminalBlock var blocks = new List<IMyTerminalBlock>(); //place all doors in...