Howdy,
Before I begin. I don't really know much about C#. My only coding experience up until this point has been some basic Javascript stuff.
I've been trying to hobble together a script to run a ships gravity drive. I have 20 Gravity Generators and 28 mass blocks on the ship. The code I'm using is below:
List only getting the first 20 blocks
Before I begin. I don't really know much about C#. My only coding experience up until this point has been some basic Javascript stuff.
I've been trying to hobble together a script to run a ships gravity drive. I have 20 Gravity Generators and 28 mass blocks on the ship. The code I'm using is below:
Code:
public void GravDriveForwardProg()
{
var crewgrav = GridTerminalSystem.GetBlockWithName("CrewGravityGenerator") as IMyGravityGenerator;...