changing speed of rotating light

Mark , shared this feedback 6 years ago
Submitted

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

Replies (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)

Leave a Comment
 
Attach a file
You can't vote. Please authorize!
You can't vote. Please authorize!
You can't vote. Please authorize!
You can't vote. Please authorize!
You can't vote. Please authorize!
You can't vote. Please authorize!