Jump to content

Simple script needed - missile launched?


Recommended Posts

Posted

Hi,

 

I would need a simple way to detect, if a missile was fired. It would work nicely with the MISSILE IN ZONE condition, but the SA-2 (or better it's missile) is not listed in the ME table.

 

So I'd need another way to just detect if any missile was fired in a specified triggerzone. Or is there a way to manually add the SA-2 missile to the respecitive ME table?

 

Anyone have an idea?

Modules/maps: all, except for the Dora

My missions: https://www.digitalcombatsimulator.com/en/files/filter/user-is-Don rudi/apply/

Primary system: i7-13700k, RTX 4080, 32 GB, Win 11, Virpil WarBRD + Constellation Alpha with 5cm extension, Virpil CM2 throttle, Virpil Ace Interceptor pedals, Virpil Rotor TCS base + Blackshark grip, Winwing Triple MFD and ICP, Virpil panel 3, 34" UWHQD screen
Secondary system: Acer Nitro 5, i7-12700h, RTX 4060, 32 GB, Win 11, Virpil Rotor TCS base + Blackhawk grip, Virpil Ace Torq pedals, WinWing Viper Ace EXII stick, WinWing Strike Ace EXII throttle, WinWing PTO 2 panel 34" UWHQD screen

Posted

Thanks - ON SHOT works fine, but is there a way to catch the initiator using triggers?

I am trying to use this as a substitute for the missing RWR on the A-4 and currently it reacts to everyone firing. Still better than nothing though :)

Modules/maps: all, except for the Dora

My missions: https://www.digitalcombatsimulator.com/en/files/filter/user-is-Don rudi/apply/

Primary system: i7-13700k, RTX 4080, 32 GB, Win 11, Virpil WarBRD + Constellation Alpha with 5cm extension, Virpil CM2 throttle, Virpil Ace Interceptor pedals, Virpil Rotor TCS base + Blackshark grip, Winwing Triple MFD and ICP, Virpil panel 3, 34" UWHQD screen
Secondary system: Acer Nitro 5, i7-12700h, RTX 4060, 32 GB, Win 11, Virpil Rotor TCS base + Blackhawk grip, Virpil Ace Torq pedals, WinWing Viper Ace EXII stick, WinWing Strike Ace EXII throttle, WinWing PTO 2 panel 34" UWHQD screen

Posted

I had just popped this code into one of my missions (the one from a while back) and came across this thread.

 

This code will set a flag value to 7777 when a missile is fired by a particular unit. Set the flag to whatever you want!

 

Substitute the values for your situation in this following code (thanks to CATT42 for all his help here)

 

For the SA-2, the WEAPONS CATEGORY should be "2" for SAM

GUIDANCE TYPE should be "5" for the SA-2

 

don't forget to change the UNIT NAME to the name of your launcher

 

 

 

https://forums.eagle.ru/showpost.php?p=3542104&postcount=5

Posted

Thanks so much guys!

That script works fine. I could strip the weapons type and guidance part, as the Fan Song radar is treated as the initiator.

Modules/maps: all, except for the Dora

My missions: https://www.digitalcombatsimulator.com/en/files/filter/user-is-Don rudi/apply/

Primary system: i7-13700k, RTX 4080, 32 GB, Win 11, Virpil WarBRD + Constellation Alpha with 5cm extension, Virpil CM2 throttle, Virpil Ace Interceptor pedals, Virpil Rotor TCS base + Blackshark grip, Winwing Triple MFD and ICP, Virpil panel 3, 34" UWHQD screen
Secondary system: Acer Nitro 5, i7-12700h, RTX 4060, 32 GB, Win 11, Virpil Rotor TCS base + Blackhawk grip, Virpil Ace Torq pedals, WinWing Viper Ace EXII stick, WinWing Strike Ace EXII throttle, WinWing PTO 2 panel 34" UWHQD screen

  • Recently Browsing   0 members

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