BlzSetUnitSkin
- Parameters
-
whichUnit unit
The function will modify this unit's model.
skinId integer
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 (suggest an edit or discuss on Github)
- return type
-
nothing
- Source code
-
native BlzSetUnitSkin takes unit whichUnit, integer skinId returns nothing