Looks like there's no event setting the variable. Is that missing in the trigger or just the copied trigger text?Set VariableSet SkinUnit = Peasant 0001 <gen>
It's the same as above:Looks like there's no event setting the variable. Is that missing in the trigger or just the copied trigger text?
Worked for me (attached). 1.35?It's the same as above:
Melee Initialization
Events
Map initialization
Conditions
Actions
Trigger - Run Set Unit Type Skins <gen> (checking conditions)
If it has anything to do with the shadow size, maybe these could help:When using BlzSetUnitSkin() the units shadow is initially removed. At least in classic. The shadow is returned after a unit is killed and revived or after being morphed back and forth from another unit/model (for example being hexed) which reduces its usefulness. I havnt found a non-intrusive way to restore the shadow.
Tried converting the unit types to strings and then to integers. I did not find a way to convert unit types to integers directly since skins are integers.FYI: You can make a unit-type GUI-variable and use it instead of the unit-raw-codes if you'd like. Makes it slightly more GUI
Ah, I see, although you are still using custom script?This trigger works on 1.31 at least, as unittypes are just integers in disguise, nothing else.
I tried these but not too surprisingly when it comes to some of these new functions they did nothing.If it has anything to do with the shadow size, maybe these could help:
Or maybe this does the trick: