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

Hide unit (from minimap)..???

Status
Not open for further replies.
Level 11
Joined
Sep 9, 2010
Messages
368
attachment.php
 

Attachments

  • watisdis.jpg
    watisdis.jpg
    348.4 KB · Views: 969
Level 7
Joined
Jul 18, 2009
Messages
272
Oh, ok, "Stats". Sorry, I don't have an english editor and translated it wrong. :vw_sad:
 
Level 3
Joined
Sep 28, 2018
Messages
38
I literally linked you a tutorial. Read it. Wherever you would set that flag with a trigger, instead transform the unit.

Again, I am not sure this will allow the minimap icon to be hidden; it's just an idea.
Missed that link, thanks. Negative on this method though, does nothing regarding hiding a unit on the minimap. Attached sample.
 

Attachments

  • thisIsATest.w3x
    22.1 KB · Views: 10
Level 45
Joined
Feb 27, 2007
Messages
5,578
Then in my estimation the only possible solution is to permanently disable the minimap icon for those units, and when you want the icon to be shown you create a nonselectable and noninteractable unit in the same location that DOES have a minimap icon turned on. Then you have to keep the new fake map icon unit in roughly the same location as the real unit as it moves.

A lazy solution would be giving it flying movement speed, max speed, and telling it to follow the target non-icon'd unit... but that will fail or get fucky if teleports/blinks/knockbacks exist in the map and could affect those units. A better solution uses a low timeout periodic timer and would require some parallel arrays or a way to attach data to the units.
 
Level 3
Joined
Sep 28, 2018
Messages
38
P
Then in my estimation the only possible solution is to permanently disable the minimap icon for those units, and when you want the icon to be shown you create a nonselectable and noninteractable unit in the same location that DOES have a minimap icon turned on. Then you have to keep the new fake map icon unit in roughly the same location as the real unit as it moves.

A lazy solution would be giving it flying movement speed, max speed, and telling it to follow the target non-icon'd unit... but that will fail or get fucky if teleports/blinks/knockbacks exist in the map and could affect those units. A better solution uses a low timeout periodic timer and would require some parallel arrays or a way to attach data to the units.
Permanently disabling would work great in our case. We’ve heroes we’d like to stay on the map but a lot of units that create too much clutter and don’t require minimap icons.

*edit: now how would one go about doing this?
 
Level 3
Joined
Sep 28, 2018
Messages
38
Your question was not clear. If that flag does not work at all then there is literally nothing you can do. I cannot help you.

Found something...

Advanced -> Game Interface -> Icon - Minimap field.
Fill this with blank.blp file.

Can't ascertain which represents an units icon on the minimap.
 

Attachments

  • icons.png
    icons.png
    99.4 KB · Views: 53
  • iconsInEditor.PNG
    iconsInEditor.PNG
    2.1 MB · Views: 53
Status
Not open for further replies.
Top