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

Script help

$
0
0
Hey guys im working teaching myself C# so that I can create scripts in SE. I need some help with the script im working on.

here is my code:

void Main()
{
IMyTerminalBlock Rotor = GridTerminalSystem.GetBlockWithName("Y Axis") as IMyTerminalBlock;
float f = Rotor.GetValueFloat("LowerLimit");

if(Rotor.GetValueFloat("LowerLimit")>270);
{Rotor.SetValueFloat("LowerLimit", f -= 5);}

if(Rotor.GetValueFloat("LowerLimit")==270);{
Rotor.SetValueFloat("LowerLimit",360);...

Script help

Viewing all articles
Browse latest Browse all 903

Trending Articles