Tutorials

Space Engineers: How to code in Space Engineers (SE-C#) TUTORIAL: Basics to Actions

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.

Products You May Like

Articles You May Like

Online Classes: A Survival Guide – How to Tips
TOP 5 BEST SURVIVAL GEAR ON AMAZON 2020
Cycling Your First 100 Miles | How To Prepare For A Century
Study Tips – How to learn new content
Photoshop Tutorial: How to Transform PHOTOS into Gorgeous, Pencil DRAWINGS
20 Wilderness Survival Tips!

Leave a Reply

Your email address will not be published. Required fields are marked *