Quantcast
Channel: Programming (In-game)
Viewing all articles
Browse latest Browse all 903

In game script setup

$
0
0
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

Viewing all articles
Browse latest Browse all 903

Trending Articles