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

Problem with While loop

$
0
0
Code:
void StopLightBlink(string LightName)
{
  IMyInteriorLight LiftLight = (IMyInteriorLight)GridTerminalSystem.GetBlockWithName(LightName);
  float BlinkValue = 0.0f;
  BlinkValue = LiftLight.BlinkIntervalSeconds;
  
  //WriteToScreen(DEBUG_SCREEN,NLCR+"Interval: "+BlinkValue+NLCR,true); //test line to read value
  while(BlinkValue > 0)
  {
	WriteToScreen(DEBUG_SCREEN,"Interval before decrease: "+BlinkValue+NLCR,true); //test line to read value
	var LightAction =...
Problem with While loop

Viewing all articles
Browse latest Browse all 903

Trending Articles