Jump to content

Recommended Posts

Posted

Hi,

 

How can I read which pylon has what weapon loaded?

 

I have a weapon selector switch that selects the store based on type, not station, so if I have e.g. one cluster bomb loaded, it will release that cluster bomb regardless of the station it is loaded on, and if cluster bombs are loaded on multiple stations it will send release pulses in a specific sequence, but again independent of which station they are actually loaded on (asymmetric stores are permitted but the system is unaware of this).

 

I know how to select the stations, but I don't how to detect which station has what loaded on it.

 

Best regards,

Tango.

Posted

Tango here is code from our L-39ZA (this code you see for plane in FC2 Rearm.lua file):

rearm_payloads[L-39ZA] = 
{
   [GUN_ONLY] = {},   
   [4501]     = 
   {
       {
           Pylon = 1,
           LauncherCLSID = "{CLSIDnumber}",
           LauncherCategory = "11",
       }, 
       {
           Pylon = 2,
           LauncherCLSID = "{CLSIDnumber}",
           LauncherCategory = "11",
       },
       {
           Pylon = 3,
           LauncherCLSID = "{CLSIDnumber}",
           LauncherCategory = "11",
       },    
       {
           Pylon = 4,
           LauncherCLSID = "{CLSIDnumber}",
           LauncherCategory = "11",
       },            
   },
}

 

{CLSIDnumber} ----use CLSID for UB-16

 

[4501] -----this is first number for payload if you more payloads for second is number 4502,for next 4503..........

 

LauncherCategory ------its defined your weapon category....

"11" ----- its for UB-16

"1" ------this number is for FAB-250

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...