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

Changing Icon - Game Interface ingame

Status
Not open for further replies.
Level 12
Joined
May 7, 2008
Messages
346
Hello.

I'm trying to change the Hero Icon on the upper left side of the screen.

Normally you can do this inside an Object Editor before the game starts, but since I'm changing Unit's Skin in game with this custom script:
  • Custom script: call BlzSetUnitSkin(udg_Test_Unit, 'h004')
I was wondering if there's any workaround to change that as well? My Hero is upgrading periodically and I want the icon to correspond to it's upgrade.
 
Level 12
Joined
May 7, 2008
Messages
346
Just a headsup. BlzSetUnitSkin is imo an unfinished trash function that doesnt work the way its marketed. Not to say it cant work just that it requires convoluded workarounds that shouldnt be required in the first place.

F.e. does your unit still have a shadow after changing the skin?

Thank you for letting me know!
Update: your suggestion worked, swapping the ownership does the trick of updating the icon for a new skin unit! :)
 
Status
Not open for further replies.
Top