changing speed of rotating light

Mark , shared this feedback 4 months ago
Submitted

i woud like to have the option to be able to change the speed of with the rotating lights turn

Comments (2)

photo
2

Rotating Light just broken after fix .019

photo
2

It is possible through the Programmable Block. For example, like this:

var flasher = GridTerminalSystem.GetBlockWithName("Flasher") as IMyLightingBlock;

flasher.ApplyAction("IncreaseRotationSpeed"); // +1 speed

flasher.ApplyAction("DecreaseRotationSpeed"); // -1 speed

flasher.SetValueFloat("RotationSpeed", 0.05f);

or

flasher.SetValue("RotationSpeed", 0.05f); // explicitly specify a speed from 0.01f to 0.1f ("f" at the end is required)