• 💀 Happy Halloween! 💀 It's time to vote for the best terrain! Check out the entries to Hive's HD Terrain Contest #2 - Vampire Folklore.❗️Poll closes on November 14, 2023. 🔗Click here to cast your vote!
  • 🏆 Texturing Contest #33 is OPEN! Contestants must re-texture a SD unit model found in-game (Warcraft 3 Classic), recreating the unit into a peaceful NPC version. 🔗Click here to enter!
  • 🏆 HD Level Design Contest #1 is OPEN! Contestants must create a maze with at least one entry point, and at least one exit point. The map should be made in HD mode, and should not be openable in SD. Only custom models from Hive's HD model and texture sections are allowed. The only exceptions are DNC models and omnilights. This is mainly a visual and design oriented contest, not technical. The UI and video walkthrough rules are there to give everyone an equal shot at victory by standardizing how viewers see the terrain. 🔗Click here to enter!

Use hero minimap icon for non-hero

Status
Not open for further replies.
Level 12
Joined
May 22, 2015
Messages
1,051
Is it possible to have a unit appear on the minimap as a the big circle like heroes when the unit is not a hero?

I have bosses in my map and currently you can completely lose track of them. I find it hilarious when my friend and I are scrambling around looking for them, but it's definitely not something that should be part of the gameplay.

My current (unimplemented) idea is to have a dummy hero unit that is moved periodically to the boss (one for each boss - some bosses use more than one unit and you can have more than one boss on the map at a time).

Should I got ahead with my idea or is there a better / easier / nicer way?
 
Level 12
Joined
Mar 13, 2012
Messages
1,121
Much better ways there, you can even give your boss a custom cool looking minimap icon.

A sort of hacky way would be to look under "Advanced -> Game Interface" and there for "Icon - Minimap xxx" (where xxx would be hero, neutral, resource, resource (entangled) or resource (haunted)). And then make your boss one of those or as you said, move a dummy one of those constantly to the position of your boss unit.

A trigger solution would be to use SetAltMinimapIcon(string path), which allows you to set ONE new icon with a .blp of your choice. Then you can for every unit choose whether it should use that alternative icon, namely with UnitSetUsesAltIcon(unit u, boolean b).
 
Level 12
Joined
May 22, 2015
Messages
1,051
This is working for me thanks! I am using the haunted goldmine icon.

EDIT:
To be a little more clear, I went with the "SetAltMinimapIcon(string path)" solution and just used the haunted goldmine icon in the game already.
 
Last edited:
Status
Not open for further replies.
Top