CONTERMEASURES STATION CONTROL USING SIMCONNECT

SDK supports Prepar3D’s philosophy of an open development architecture and encourages third parties to bring new innovations with improved add-ons and training content.
Post Reply
Manoj S
Posts: 9
Joined: Sun Jul 02, 2023 5:25 am

CONTERMEASURES STATION CONTROL USING SIMCONNECT

Post by Manoj S »

Hi,

How to toggle the selection of countermeasures station passing station index through SIMCONNECT ? I am trying to do like:

Code: Select all

//Mapping to event
hr = SimConnect_MapClientEventToSimEvent(g_hSimConnect, EVENT_ID_COUNTERMEASURE_STATION_8, "COUNTERMEASURE_SYSTEM_STATION_TOGGLE:8");
hr = SimConnect_AddClientEventToNotificationGroup(g_hSimConnect, GROUP_ID_COCKPIT, EVENT_ID_COUNTERMEASURE_STATION_8);
// Setting the event
SimConnect_TransmitClientEvent(g_hSimConnect, 0, EVENT_ID_COUNTERMEASURE_STATION_8, 1, SIMCONNECT_GROUP_PRIORITY_HIGHEST, SIMCONNECT_EVENT_FLAG_GROUPID_IS_PRIORITY);
Thanks,
Manoj S
Post Reply