public override void UpdateOnceBeforeFrame() { radio = Entity as IMyRadioAntenna; List <IMyTerminalControl> antennactrls = new List <IMyTerminalControl>(); MyAPIGateway.TerminalControls.GetControls <IMyRadioAntenna>(out antennactrls); IMyTerminalControlSlider RadiusSlider = antennactrls.Find(x => x.Id == "Radius") as IMyTerminalControlSlider; float maxVal = radio.ParseMaxRange(); RadiusSlider.SetLimits(0, Extensions.ParseMaxRange(radio)); }