• Listen to a special audio message from Bill Roper to the Hive Workshop community (Bill is a former Vice President of Blizzard Entertainment, Producer, Designer, Musician, Voice Actor) 🔗Click here to hear his message!
  • Read Evilhog's interview with Gregory Alper, the original composer of the music for WarCraft: Orcs & Humans 🔗Click here to read the full interview.

how to change model of the unit inside game with trigger?

Status
Not open for further replies.
Level 12
Joined
Jul 17, 2013
Messages
544
hi i got a hero in map but i would like him to get diff model after he completes quest. he should save his stats skills and still be affected by future triggers in map. its a pre spawned hero in editor so many events are connected with him, so is there way to give him diff model with trigger? i heard unit skin a new thing could do that but i got no idea how to use it
 
Level 11
Joined
Dec 11, 2009
Messages
234
JASS:
native BlzSetUnitSkin takes unit whichUnit, integer skinId returns nothing
native BlzGetUnitSkin takes unit whichUnit returns integer
GUI:
  • Actions
    • Unit - Set Unit Skin of Blood Mage 0002 <gen> to 'Hamg' // Archmage
    • Unit - Set Unit Skin of Blood Mage 0002 <gen> to 'hfoo' // Footman
    • Unit - Set Unit Skin of Blood Mage 0002 <gen> to (Skin ID of (Dying unit)) // this works too
Object ID can be seen in Object Editor by pressing Ctrl + D.
 
Last edited:
Status
Not open for further replies.
Top