Open lukrop opened 8 years ago
I think you just have to use the unit controller instead of group controller. I had a test script a little while back and I just revisited. This seems to work fine
Controller.isTargetDetected(awacsUnit,possibleIntruder,Controller.Detection.RADAR)
The notes at Hoggit wiki suggest it behaves differently between ground and air groups (http://wiki.hoggit.us/view/DCS_func_isTargetDetected)
Yup, got this working with a really small set of changes. Not sure how I could submit this set of changes separate from the engagement changes (my PR experience being limited) so I can just hold this until those are done.
Great! You could checkout commit b10cb11090585ee1dc3665b59a4b0d13b07c60d9 and create a new branch, apply your changes and create a new PR for this branch.
If needed you could stash your changes.
Yeah, I think I see how I can get that in without creating a merge conflict while we make sure the larger engagement PR gets careful review.
Great! Looking forward to closing this issue!
AWACS aircraft seem to not work with
isTargetDetected
and therefor don't report any enemy flights, eliminating them as useful "radar resource".Check if it's possible to hack some simple detection logic or wait for upstream (ED) fix.