Jump to content

Recommended Posts

Posted

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

  • 3 weeks later...
Posted

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.

Posted

: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.

  • Recently Browsing   0 members

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