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

What did I do wrong?

$
0
0
I've got a pair of timers loaded with other stuff that I'm triggering when doors are opened or closed.

Code:
bool closed = false;
bool open = false;
void Main()
  {
  Runtime.UpdateFrequency = UpdateFrequency.Update1;
  var door = GridTerminalSystem.GetBlockWithName("Airtight Hangar Door") as IMyAirtightHangarDoor;
  var lightsOn = GridTerminalSystem.GetBlockWithName("HangarOpen Timer") as IMyTimerBlock;
  var lightsOff = GridTerminalSystem.GetBlockWithName("HangarClose Timer") as...
What did I do wrong?

Viewing all articles
Browse latest Browse all 645

Latest Images

Trending Articles



Latest Images