WEAPON STATION SELECTION USING STATION INDEX

Discuss on the SimConnect SDK can be used by programmers to write add-on components for Prepar3D
Post Reply
Manoj S
Posts: 9
Joined: Sun Jul 02, 2023 5:25 am

WEAPON STATION SELECTION USING STATION INDEX

Post by Manoj S »

Hi,

How to toggle the selection of weapon station passing station index through SIMCONNECT ? I tried using "WEAPON_STATION_TOGGLE:1" from Weapon Systems Events and Keys, and "WEAPON SYSTEM STATION SELECTED:1" from Weapon SimVars. But unable to toggle the weapon station selection. If anyone knows kindly suggest.

Regards,
Manoj S
Clifton Crane
Lockheed Martin
Posts: 1207
Joined: Tue Sep 25, 2012 2:34 pm

Re: WEAPON STATION SELECTION USING STATION INDEX

Post by Clifton Crane »

Hi Manoj,

It looks like the "WEAON_STATION_TOGGLE" key event does not utilize the index. Instead, you can pass the station index via the data parameter. Here is an XML example:

Code: Select all

4 (>K:WEAPON_STATION_TOGGLE)
We include a gauge called WeaponsGauge.cab. It should be located in your Prepar3D installation "Gauges" directory. It may provide some insight on how some weapon SimVars and KeyEvents work.

Regards,
Clifton
Clifton Crane
Prepar3D® Software Engineer Sr.
Manoj S
Posts: 9
Joined: Sun Jul 02, 2023 5:25 am

Re: WEAPON STATION SELECTION USING STATION INDEX

Post by Manoj S »

Hi Clifton,

Thanks for the suggestion, now it's working as expected.

Regards,
Manoj S
Post Reply