BlzCreateUnitWithSkin

Parameters
idplayer

The owner of the unit.

unitidinteger

The rawcode of the unit.

xreal

The x-coordinate of the unit.

yreal

The y-coordinate of the unit.

facereal

Unit facing in degrees.

skinIdinteger

The function will apply the skinId model to the unit created.

comment

Creates a unit with the model from the unit referenced by the skinId. BlzCreateUnitWithSkin(players[0], 'hpea', 0, 0, 270, 'hfoo') will create a peasant with a footman model. Scale from the unit referenced by the skinId is applied to whichUnit. SoundSet from the unit referenced by the skinId is applied to whichUnit.

patch

1.32.0.13369

Source
common.j (suggest an edit or discuss on Github)
return type
unit
Source code
native BlzCreateUnitWithSkin                       takes player id, integer unitid, real x, real y, real face, integer skinId returns unit