• 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.

Finding a unit on map

Status
Not open for further replies.
Level 10
Joined
Jun 6, 2007
Messages
392
Hello! I have a huge map with lots of units. I have a trigger which has an event "unit comes within 100 range of footman 0427 <gen>". I need to locate where that unit is. Because there are many units, checking them all one by one will take a lot of time. Is there an easier way?
 
Level 16
Joined
Mar 27, 2011
Messages
1,349
I need to locate where that unit is.

A question to clarify. You want which unit. The footman, or the unit that comes in range of the footmen?

If you want the unit which comes in range of the footmen, you simply use "Triggering Unit", as the unit that
came in range of the footmen is in fact the unit which "triggered" the trigger :)

Edit:

  • Set Position = (Position of (Triggering unit))
 
Level 16
Joined
Mar 27, 2011
Messages
1,349
Use this then?

  • Set Position = (Position of Footman 0427 <gen>)
This will work given there is only 1 event in each trigger. Otherwise I'm not sure how to help and somebody else may have to assist :/

Edit: If you want a visual indicator on the physical location of the unit, you can use a ping on the minimap.

  • Cinematic - Ping minimap for (All players) at Position for 1.00 seconds
 
Level 16
Joined
Mar 27, 2011
Messages
1,349
Well, I guess I could just ping it ingame...

Yes, this is one way. You could reveal a small radius around the unit too.

  • Visibility - Create an initially Enabled visibility modifier for Player 1 (Red) emitting Visibility from Position to a radius of 512.00
Edit: If the unit looks identical to other units, you could display a special effect on the unit too.

  • Special Effect - Create a special effect attached to the overhead of Footman 0427 <gen> using Abilities\Spells\Other\Charm\CharmTarget.mdl
  • Special Effect - Destroy (Last created special effect)
 
Level 16
Joined
Mar 27, 2011
Messages
1,349
Well, I just created a map so I could copy trigger text to help the OP. So I made 1 footman in the centre of the map for reference in the triggers. I did not delete the footmen. Not sure why it didn't work then. Anyway thanks for pointing the feature out.
 
Status
Not open for further replies.
Top