Pizzicato Posted July 24, 2024 Posted July 24, 2024 (edited) Hey all/ @Flappie Edit: I had to re-upload the WORKS file, but it's now hidden away at the very bottom of the post. Sorry! It looks like the getDetectedTargets() function got broken with the 2.9.6.58056 hotfix. It works fine when you call it without arguments, but it never works when provided with a detectionType argument. This is true regardless of whether you provide the enum (e.g. Controller.Detection.RADAR) or the integer value (e.g. 4). I've tried this with air and ground units, and differing combinations of OPTICAL, RADAR, and IRST detection types. I've provided three versions of the same simple test with a lone A-50 trying to detect a nearby C-130. It successfully detects the Hercules every 5 seconds when no argument is provided, but fails with both the enum and the integer.nullnullnull You'll see the same issue if you try it with ground units, too. TEST_Detection_FAILS_1.mizTEST_Detection_FAILS_2.miz TEST_Detection_WORKS.miz Edited July 24, 2024 by Pizzicato Wrong version of the WORKS file. i7-7700K @ 4.9Ghz | 16Gb DDR4 @ 3200Mhz | MSI Z270 Gaming M7 | MSI GeForce GTX 1080ti Gaming X | Win 10 Home | Thrustmaster Warthog | MFG Crosswind pedals | Oculus Rift S
Recommended Posts