• 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.
  • The Hive's 22nd Icon Contest: Creep Abilities is now concluded, time to vote for your favourite set of icons! Click here to vote!
  • ✅ The POLL for Hive's Texturing Contest #34 is OPEN! Vote for the TOP 3 SKINS! 🔗Click here to cast your vote!
  • ✅ The POLL for Hive's Techtree Contest #20 is OPEN! Vote for the TOP 3 FACTIONS! 🔗Click here to cast your vote!

Info regarding SetUnitSkin() function

Uncle

Warcraft Moderator
Level 76
Joined
Aug 10, 2018
Messages
8,351
Just hoping to get some info regarding any pitfalls/tips I should know about when using this function. I saw that it removes a unit's Shadow, at least in SD mode, but I also see that you can fix it with a 0.1s Hex/Morph or with a 0s Reincarnation "instant" revive. So there's workarounds, just none of them are perfect.

Edit:
Impale resets the model back to it's original art, but the portrait and sound set remain altered. Could be useful?
 
Last edited:
There's a reason I work on jassdoc: to document such behavior for us as a first and report as bugs second.
there's another issue where unit icons are messed up when you spawn units with different skins: jassdoc/common.j at 01b311a7db3eee79e6ec61fe2abf887f7cb13656 · Luashine/jassdoc

since we know shadows are images, the two instances may be connected and have one root cause, where only the image handling is messed up.
 
Back
Top