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

Please help with programing IMyRemoteControl 'Forward Direction'

$
0
0
I've been struggling with this for some time now and just can't seem to get it right. I want to change the forward direction of a remote control via a script. According to me, my code should work and I don't get any errors but the forward direction doesn't change.

IMyRemoteControl r = GridTerminalSystem.GetBlockWithName("Remote Control") as IMyRemoteControl;
r.GetActionWithName("Backward").Apply(r);

I know the syntax is correct because i can change other blocks and actions with success....

Please help with programing IMyRemoteControl 'Forward Direction'

Viewing all articles
Browse latest Browse all 645

Trending Articles