BlzSetUnitSkin

Parameters
whichUnitunit

The function will modify this unit's model.

skinIdinteger

The function will apply the skinId model to whichUnit.

comment

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.

note

Upon function call, all attachment visual effect are removed from whichUnit.

patch

1.32.0.13369

Source
common.j (raise an issue to discuss on Github or submit a PR)
return type
nothing
Source code
native BlzSetUnitSkin                                 takes unit whichUnit, integer skinId returns nothing