Version: 1.2.7.0
Frequency: Consistently
Severity: High
Context: Calling SimConnect_TransmitClientEvent() function from both external EXE and a WASM module.
Similar MSFS 2020 issue: Exactly the same problem is present in FS2020 too.
Bug description: PARKING_BRAKE_SET event has no effect on GroundVehicle category SimObjects.
Repro steps:
This sample code tries to set brakes on both user airplane and a vehicle SimObject:
enum EVENT_ID {
EVENT_SET_BRAKES,
};
DWORD vehicle_simobject_id = 123; // Alter as needed
DWORD brakes = 1;
SimConnect_MapClientEventToSimEvent(simconnect, EVENT_SET_BRAKES, "PARKING_BRAKE_SET");
// Set brakes on user
SimConnect_TransmitClientEvent(simconnect, SIMCONNECT_OBJECT_ID_USER, EVENT_SET_BRAKES, brakes, 0, 0);
// Set brakes on vehicle
SimConnect_TransmitClientEvent(simconnect, vehicle_simobject_id, EVENT_SET_BRAKES, brakes, 0, 0);
Expected results:
- Brakes set on user airplane.
- Brakes set on the vehicle.
Actual results:
- Brakes set on user airplane.
- Brakes NOT set on the vehicle.
Parking brakes are implemented for both categories of objects and work correctly when toggled with PARKING_BRAKES
event, but trying to set them to a specific value with PARKING_BRAKE_SET
has no effect.