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 =...