BlzCreateUnitWithSkin
- Parameters
-
id player
The owner of the unit.
unitid integer
The rawcode of the unit.
x real
The x-coordinate of the unit.
y real
The y-coordinate of the unit.
face real
Unit facing in degrees.
skinId integer
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
- return type
unit
- Source code
native BlzCreateUnitWithSkin takes player id, integer unitid, real x, real y, real face, integer skinId returns unit