Don Rudi Posted November 24, 2018 Posted November 24, 2018 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
feefifofum Posted November 24, 2018 Posted November 24, 2018 There are a few missing items from those missile tables unfortunately. If the units are not dynamically spawned, an event handler that toggles a flag on a shot event with the SA-2 as its initiator should do the trick. THE GEORGIAN WAR - OFFICIAL F-15C DLC
Don Rudi Posted November 24, 2018 Author Posted November 24, 2018 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
feefifofum Posted November 24, 2018 Posted November 24, 2018 Not using the native ME interface, but a short bit of .lua will do the trick if you know the shooter's name. If you're unfamiliar, look back a few pages where a Sparrow shot event handler was. being discussed a few months ago. You should be able to trim out the unnecessary code and get what you need. THE GEORGIAN WAR - OFFICIAL F-15C DLC
Sedlo Posted November 25, 2018 Posted November 25, 2018 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 My Youtube Channel MY DCS MISSIONS
Don Rudi Posted November 25, 2018 Author Posted November 25, 2018 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
Recommended Posts