BlzCreateUnitWithSkin
- Parameters
id playerThe owner of the unit.
unitid integerThe rawcode of the unit.
x realThe x-coordinate of the unit.
y realThe y-coordinate of the unit.
face realUnit facing in degrees.
skinId integerThe 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