The function will modify this unit's model.
The function will apply the skinId model to whichUnit.
Replaces a unit's model with the unit's model referenced by the skinId.
BlzSetUnitSkin(whichUnit, 'hfoo')will replace whichUnit model with the footman one. Scale from the unit referenced by the skinId is applied to whichUnit. SoundSet from the unit referenced by the skinId is applied to whichUnit.
Upon function call, all attachment visual effect are removed from whichUnit.
- return type
- Source code
native BlzSetUnitSkin takes unit whichUnit, integer skinId returns nothing