I'm trying to get an LCD panel to work, and this is the script I found online to set up the object variables. It works, but it doesn't make sense to me in the C# sense...
List<IMyTerminalBlock> work = new List<IMyTerminalBlock>();
GridTerminalSystem.SearchBlocksOfName(PANEL_NAME, work);
IMyTextPanel panel = (IMyTextPanel)work[0];
GridTerminalSystem.SearchBlocksOfName(CONTAINER_NAME, work);
IMyCargoContainer container = (IMyCargoContainer)work[0];
How is it possible to put both panel...
In game script setup
List<IMyTerminalBlock> work = new List<IMyTerminalBlock>();
GridTerminalSystem.SearchBlocksOfName(PANEL_NAME, work);
IMyTextPanel panel = (IMyTextPanel)work[0];
GridTerminalSystem.SearchBlocksOfName(CONTAINER_NAME, work);
IMyCargoContainer container = (IMyCargoContainer)work[0];
How is it possible to put both panel...
In game script setup