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

List only getting the first 20 blocks

$
0
0
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:


Code:
public void GravDriveForwardProg()
{
  var crewgrav = GridTerminalSystem.GetBlockWithName("CrewGravityGenerator") as IMyGravityGenerator;...
List only getting the first 20 blocks

Viewing all articles
Browse latest Browse all 903

Trending Articles