• 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.

    Parameters

    • whichUnit: Unit<UnitEventMap>

      The function will modify this unit's model.

    • skinId: number

      The function will apply the skinId model to whichUnit.

    Returns void

    Note

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

    Patch

    1.32

Generated using TypeDoc