Quantcast
Channel: Programming (In-game)
Viewing all articles
Browse latest Browse all 645

Save and load variable?

$
0
0
So I'm trying to automate mining on my ship, I have pistons that need to go after each other in order to not break the drills. So I created a simple program.

Code:
public void Main(){
   IMyPistonBase Piston_up_one = (IMyPistonBase) GridTerminalSystem.GetBlockWithName("Mining - Piston up 1");
   IMyPistonBase Piston_up_two = (IMyPistonBase) GridTerminalSystem.GetBlockWithName("Mining - Piston up 2");
   IMyPistonBase Piston_down_one = (IMyPistonBase)...
Save and load variable?

Viewing all articles
Browse latest Browse all 645

Trending Articles