How about an event based system? It could have a similar interface to the ai module and would respond to events with certain actions, like toggling a door or light. A controller block could be linked different systems, and if there were some form of radio transmissions, you could set up a hangar...