Editing done in: MAGIX Movie Edit Pro 2014
List of Actions: http://steamcommunity.com/sharedfiles/filedetails/?id=360966557
NOTE: input Greater than and Less than signs at [Greater] and [Less] (YT doesn’t allow Brackets)
Code:
Random rnd = new Random();
List[Less]IMyTerminalBlock[Greater] blocks = new List[Less]IMyTerminalBlock[Greater]();
void Main(){
blocks.Clear();
GridTerminalSystem.GetBlocksOfType[Greater]IMyInteriorLight[Less](blocks);
for(int i = 0; i [Less] blocks.Count; i++){
var block = blocks[i];
if(rnd.NextDouble() [Greater] 0.5f){
block.GetActionWithName(“OnOff”).Apply(block);
}
}
}
Music: Only the melody of my voice.