Advertisement
GauHelldragon

Untitled

Dec 31st, 2015
153
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.45 KB | None | 0 0
  1. IMyOxygenTank tank = (IMyOxygenTank)GridTerminalSystem.GetBlockWithName("H-Tank");
  2. IMyShipConnector connector = (IMyShipConnector)GridTerminalSystem.GetBlockWithName("H-Connect");
  3. IMyTextPanel tPanel = (IMyTextPanel)GridTerminalSystem.GetBlockWithName("T-Panel");
  4.  
  5.  
  6. bool isLocked = connector.GetValueBool("IsLocked");
  7.  
  8. if ( isLocked ) {
  9. tPanel.WritePublicText("Connector is locked");
  10. }
  11. else {
  12. tPanel.WritePublicText("Connector is unlocked");
  13. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement