HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

Switching unit models ingame...

10-17-2003, 01:22 AM#1
General Tekno
Is there a way through triggers or JASS to switch a units model in the middle of the game?

Or, if not possible, transfer spells, buffs, stats, etc to an identical unit with a different model?
10-17-2003, 02:14 AM#2
Klownkiller
do you mean it will basically be a totally new unit? It would be easiest to create multiple units and just replace them with one another. Just make the first one and
copy
paste
change
copy
paste
change
until you get the desired unit progression. you can make it change after any kind of event. is that what you are looking for? You will have to create all the different models anyway. this would be much simpler unless you planned something like a build your own unit function or something
10-17-2003, 02:16 AM#3
Biflspud
No need to go to a lot of trouble, just give them a morph ability, order them to execute it, and then remove the morph ability. Obviously, you'll need to give both morphs the same hero skills/extra skills, or they'll lose their skills when you change forms.

Something like:
Add [Morph-based ability] to hero
Order hero to perform a command with no target: Morph
Remove [Morph-based ability] from hero.

Voila. No fuss, no muss.
10-17-2003, 02:24 AM#4
Grater
You could also use the "Chaos" ability, in fact I highly reccomend it.