In-game scripting: APIs for gas tanks and conveyor connections.
At present, it's difficult to detect with absolute certainty which gas a given gas tank holds - the Name and CustomName fields are affected by localisation, and reading BlockDefinition.TypeId seems overly drawn out and not all too performant. An API specifically for determining an IMyGasTank's gas type would be greatly appreciated.
Additionally, an API for checking if two blocks with conveyor ports have a valid conveyor connection between them would be useful. I know that IMyInventory.IsConnectedTo already exists, however this does not allow checking against blocks that do not have an actual inventory of their own, such as IMyAirVents. My use case here is checking whether a given Oxygen Tank is connected to a given Air Vent, though ideally such an API would allow checking between two Air Vents as well.
Thank you.
Replies have been locked on this page!