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

Ingame scripts on online server (dedicated) not working as expected

$
0
0
Hey everyone,

I have a script which couldn't be any simpler:

public void Main(string argument, UpdateType updateSource)
{
IMyFunctionalBlock thruster = GridTerminalSystem.GetBlockWithName("Atmospheric Thrusters") as IMyFunctionalBlock;
thruster.ApplyAction("OnOff");
}

In Offline mode this works just fine. I mean, why shouldn't it. (I have the thruster placed directly next to the programmable block, for testing purposes. Both blocks built and owned by me.)

Now...

Ingame scripts on online server (dedicated) not working as expected

Viewing all articles
Browse latest Browse all 645

Trending Articles