• Listen to a special audio message from Bill Roper to the Hive Workshop community (Bill is a former Vice President of Blizzard Entertainment, Producer, Designer, Musician, Voice Actor) 🔗Click here to hear his message!
  • Read Evilhog's interview with Gregory Alper, the original composer of the music for WarCraft: Orcs & Humans 🔗Click here to read the full interview.
  • The Hive's 22nd Icon Contest: Creep Abilities is now concluded, time to vote for your favourite set of icons! Click here to vote!
  • ✅ The POLL for Hive's Texturing Contest #34 is OPEN! Vote for the TOP 3 SKINS! 🔗Click here to cast your vote!
  • ✅ The POLL for Hive's Techtree Contest #20 is OPEN! Vote for the TOP 3 FACTIONS! 🔗Click here to cast your vote!

Order unit to target unit it can't see?

Status
Not open for further replies.
Level 3
Joined
Mar 11, 2019
Messages
31
Hey all, I'm trying to make it so a sold unit from a mercenary camp will moveto/attack a random player unit, but it only seems to work if fog/blackmask are turned off because the unit can't see the target.

Is there a way to make it so units can target units through fog/black mask across large distances?
 
Besides giving vision of the target unit for the player who owns the sold unit, I don't think so.


If that's not an option, then I guess you could periodically order the sold unit to move to the target unit's position until it comes within rage of vision and then order it to attack.
 
What you are asking for can be copied over directly from ROC campaign UD03.
You can check the trigger here:
2P Campaign: Undead 03

It is for the starting trigger for Sylvanas to attack Arthas, no matter where he is on the map. The trigger is made so that when Arthas is dead, Sylvanas will target random undead buidings/units until there are none left on map or she dies (this is the initial trigger before she is revived at the bottom-right blue base. You can modify it so it fits your needs. Note: For some reason that map has preview triggers disabled, so I cannot show you the exact name without opening up wc3.
 
Status
Not open for further replies.
Back
Top