I'm writing an airstrike script which causes a plane to fly towards a target marker, when he is 3k from the marker he will get RED mode. And pounds the unit at the target. As he approaches.
All good
The problem occurs if i have another target that will be discovered before the target at the target marker, he will then, as soon as he goes red at 3k, turn away from the target marker and engage the previously found target.
If i have the RED mode close to my target enough, he will attack whatever's there, but if it's too close he won't have time to fire..
So i guess my question is: is there a way to "hide" an enemy unit from a unit? Like the opposite of the Reveal command? I would like to have the pilot ignoring any targets outside of a radius of, say, 1000 meters of the target marker?
any input welcomed
edit: I've tried Yellow too, it does the same thing.