BlzSetUnitSkin
- Parameters
whichUnit unitThe function will modify this unit's model.
skinId integerThe 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