Skip to content

Instantly share code, notes, and snippets.

@csmith
Last active December 2, 2015 06:44
Show Gist options
  • Save csmith/5f9e4edf51b0b24de0ef to your computer and use it in GitHub Desktop.
Save csmith/5f9e4edf51b0b24de0ef to your computer and use it in GitHub Desktop.
Sample code to retrieve solar panel output in Space Engineers
void Main(string argument)
{
var info = GridTerminalSystem.GetBlockWithName("Solar Panel").DetailedInfo;
var lines = info.Split('\n');
var output = lines[2].Split(':')[1].Trim(); // output = "110 kW"
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment