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

Using the programming block to set Gravity Field Width/Depth/Height

$
0
0
I've been trying to modify a gravity generators gravity field using the programming block, but I seem to be running into an issue with the Field properties.

Here's the code I'm using:

Code:
void Main() 
{ 
List<IMyTerminalBlock> gravitygenerator = new List<IMyTerminalBlock>(); 
GridTerminalSystem.SearchBlocksOfName("Gravity Generator", gravitygenerator); 
for (int i = 0; i < gravitygenerator.Count; i++) 
{ 
var thisgravitygenerator = gravitygenerator[i] as IMyGravityGenerator;...
Using the programming block to set Gravity Field Width/Depth/Height

Viewing all articles
Browse latest Browse all 645

Trending Articles