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

Using Method on Blocks List

$
0
0
Hi,

Maybe a basic question, but i didn't found any proper example who explain how to apply action on blocks extracted from a list.

No problem to deal with properties but anyway I a try to apply a method -> throw exception :'/

Code:
IMyDoor _Door1;

IMyFunctionalBlock AnyLight;
List<IMyTerminalBlock> _TypeLights = new List<IMyTerminalBlock>();
List<IMyTerminalBlock> _GrpLights = new List<IMyTerminalBlock>();

public Program() {

    _Door1 = GridTerminalSystem.GetBlockWithName("Sliding...
Using Method on Blocks List

Viewing all articles
Browse latest Browse all 903

Trending Articles