Precision Mode Control in Programmable Block interface
Submitted
As the title states it appears we do not have access to Precision Control at this time.
Given that it is in the same area as Collision Avoidance I would expect to access it the same way:
// Like _remoteControl.ApplyAction("CollisionAvoidance_Off"); _remoteControl.ApplyAction("PrecisionMode_Off"); // And _remoteControl.GetValueBool("CollisionAvoidance") _remoteControl.GetValueBool("PrecisionMode")
But the former (Precision Mode not Collision Avoidance in the example above) throws the following exception:
System.NullReferenceException: Object reference not set to an instance of an object.Thank you,
DragonsKin
You shouldn't be using the terminal actions and -properties at all. You should be using the members on the interfaces for performance reasons. The terminal actions and -properties are deprecated for anything but mod extensions - except where there are still missing C# members.
If you don't already I strongly recommend using an IDE like Visual Studio to write code. It will allow you to discover the available members. My plugin for Visual Studio 2017 will help.
I don't have access to the game here so I can't tell you the member you should be using, but to directly answer your question though: You're looking for the "DockingMode" terminal property.
List Of Terminal Properties and Actions
[Add.] Asked someone on the Discord channel to look it up for me. You should be using the method void IMyRemoteControl.SetDockingMode(boolean enabled). I would then assume there's a DockingMode get-only property to read it then.
You shouldn't be using the terminal actions and -properties at all. You should be using the members on the interfaces for performance reasons. The terminal actions and -properties are deprecated for anything but mod extensions - except where there are still missing C# members.
If you don't already I strongly recommend using an IDE like Visual Studio to write code. It will allow you to discover the available members. My plugin for Visual Studio 2017 will help.
I don't have access to the game here so I can't tell you the member you should be using, but to directly answer your question though: You're looking for the "DockingMode" terminal property.
List Of Terminal Properties and Actions
[Add.] Asked someone on the Discord channel to look it up for me. You should be using the method void IMyRemoteControl.SetDockingMode(boolean enabled). I would then assume there's a DockingMode get-only property to read it then.
You shouldn't be using the terminal actions and -properties at all. You should be using the members on the interfaces for performance reasons. The terminal actions and -properties are deprecated for anything but mod extensions - except where there are still missing C# members.
If you don't already I strongly recommend using an IDE like Visual Studio to write code. It will allow you to discover the available members. My plugin for Visual Studio 2017 will help.
I don't have access to the game here so I can't tell you the member you should be using, but to directly answer your question though: You're looking for the "DockingMode" terminal property.
List Of Terminal Properties and Actions
[Add.] Asked someone on the Discord channel to look it up for me. You should be using the method void IMyRemoteControl.SetDockingMode(boolean enabled). I would then assume there's a DockingMode get-only property to read it then.
You shouldn't be using the terminal actions and -properties at all. You should be using the members on the interfaces for performance reasons. The terminal actions and -properties are deprecated for anything but mod extensions - except where there are still missing C# members.
If you don't already I strongly recommend using an IDE like Visual Studio to write code. It will allow you to discover the available members. My plugin for Visual Studio 2017 will help.
I don't have access to the game here so I can't tell you the member you should be using, but to directly answer your question though: You're looking for the "DockingMode" terminal property.
List Of Terminal Properties and Actions
[Add.] Asked someone on the Discord channel to look it up for me. You should be using the method void IMyRemoteControl.SetDockingMode(boolean enabled). I would then assume there's a DockingMode get-only property to read it then.
Replies have been locked on this page!