Home   Help Search Login Register  

Author Topic: Can you cause a unit to ignore a specific enemy?  (Read 453 times)

0 Members and 1 Guest are viewing this topic.

Pointman

  • Guest
Can you cause a unit to ignore a specific enemy?
« on: 21 Mar 2003, 08:42:14 »
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.
« Last Edit: 21 Mar 2003, 09:19:22 by Pointman »

Ace

  • Guest
Re:Can you cause a unit to ignore a specific enemy?
« Reply #1 on: 21 Mar 2003, 09:19:58 »
search the forums, this topic has already been dealt with i think.

Make sure in your search you use the word ignore

Pointman

  • Guest
Re:Can you cause a unit to ignore a specific enemy?
« Reply #2 on: 21 Mar 2003, 10:09:23 »
hmm.. i searched for ignore.. nothing usable.

I'm not talking about how "CARELESS"/"BLUE" causes the unit to ignore enemy...


I got a bit farther... If i use SetWpPos instead of CommandMove, he will actually ignore units far off the real target, but units close can cause confusion and he veers off course.

Is there a way of getting who he has targetted at the time? an eventhandler? maybe i can do something like ...

_unit = Targetted _my_plane

? ( _unit Distance TARGET_POS < 500 ) : _my_plane SetCombatMode "RED" ; _my_plane DoTarget _unit ; _my_plane DoFire _unit


or something??

Offline nEO iNC

  • Contributing Member
  • **
Re:Can you cause a unit to ignore a specific enemy?
« Reply #3 on: 19 May 2003, 13:48:10 »
Hey pointman, just a thought, but maybe you could set the vehicle/unit that's on the way to captive as the A10/plane approches or is called in..?

this setCaptive true

Then when the 'real' target is destroyed, set it back to false..? ::)