- Messages
- 2
- Country
-
I have been struggling to set payload weights, or even get the number of payload stations, using c#. Setting fuel works fine so I at least understand the basic concept, but when I try and set payload station weight it doesnt have any effect, and when I try and get the count it get an error of UNRECOGNIZED_ID.
After setting up the DataDefinition I use the following code:
DoubleProp payload1 = new()
{
value = 15.25f
};
SimConnect.SetDataOnSimObject(DataDefinition.PayloadStation_1, SimConnect.SIMCONNECT_OBJECT_ID_USER, SIMCONNECT_DATA_SET_FLAG.DEFAULT,
payload1);
I also just tried setting throttle lever position 1 which seems to be the same concept and that worked fine as well, which makes me think maybe its just not working for cargo weights.
Anyone have any ideas on this? It's driving me nuts. Thanks in advance.
After setting up the DataDefinition I use the following code:
DoubleProp payload1 = new()
{
value = 15.25f
};
SimConnect.SetDataOnSimObject(DataDefinition.PayloadStation_1, SimConnect.SIMCONNECT_OBJECT_ID_USER, SIMCONNECT_DATA_SET_FLAG.DEFAULT,
payload1);
I also just tried setting throttle lever position 1 which seems to be the same concept and that worked fine as well, which makes me think maybe its just not working for cargo weights.
Anyone have any ideas on this? It's driving me nuts. Thanks in advance.