• 🏆 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!
  • ✅ The POLL for Hive's Texturing Contest #33 is OPEN! Vote for the TOP 3 SKINS! 🔗Click here to cast your vote!

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