This block of code does exactly what I want it to.
This code throws an error.
This is the error:
"'Sandbox.ModAPI.Ingame.IMyTerminalBlock' does not contain a definition for 'ShowTextureOnScreen'...
Need help with LCD panel method
Code:
var screen = (IMyTextPanel)GridTerminalSystem.GetBlockWithName("LCD Panel");
screen.ShowTextureOnScreen();
Code:
List<IMyTerminalBlock> allScreens = new List<IMyTerminalBlock>(); GridTerminalSystem.GetBlocksOfType<IMyTextPanel>(allScreens); allScreens[0].ShowTextureOnScreen();
"'Sandbox.ModAPI.Ingame.IMyTerminalBlock' does not contain a definition for 'ShowTextureOnScreen'...
Need help with LCD panel method