changing speed of rotating light
Submitted
i woud like to have the option to be able to change the speed of with the rotating lights turn
i woud like to have the option to be able to change the speed of with the rotating lights turn
Rotating Light just broken after fix .019
Rotating Light just broken after fix .019
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)
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)
Replies have been locked on this page!