MBot Posted April 4, 2017 Posted April 4, 2017 The AGM-88 HARM does not return a target in the scripting environment. See the attached test mission with the code below. One Phantom is launching AGM-45 Shrike and the script runs fine. Another Phantom is launching AGM-88 HARM and the script returns nil on getTarget(). ARM_Shot_EventHandler = {} function ARM_Shot_EventHandler:onEvent(event) if event.id == world.event.S_EVENT_SHOT then local wep = event.weapon local tgt = wep:getTarget() local tgt_grp = tgt:getGroup() local tgt_name = tgt_grp:getName() trigger.action.outText(tgt_name, 3) end end world.addEventHandler(ARM_Shot_EventHandler) HARM_Target_Test.miz
MBot Posted April 24, 2017 Author Posted April 24, 2017 Great, Kh-25MPU and Kh-58U do not return a target either. In fact the Shrike seems to be the only ARM that returns a target in the scripting engine.
Wrecking Crew Posted April 26, 2017 Posted April 26, 2017 :beer: Have a beer, I am posting a sympathy response... Visit the Hollo Pointe DCS World server -- an open server with a variety of COOP & H2H missions including Combined Arms. All released missions are available for free download, modification and public hosting, from my Wrecking Crew Projects site.
Recommended Posts