• 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.

Ending a Unit Morph?

Status
Not open for further replies.
I'm not sure it is possible in GUI, but in JASS, I think you can use something like this, but I can't guarentee it will work:
Code:
    call CasterCastAbility(GetOwningPlayer(GetTriggerUnit()),<Abil Stop Code>,"cast",GetTriggerUnit(),true)
The native is:
Code:
native CasterCastAbility takes player owner, integer abilid, string order, widget target, boolean instant returns unit
I think that should work, you just need to have a "morph back" ability and have the unit cast that. If you don't want it to appear, put it in a spellbook and disable it like that. :grin:

EDIT: JASS tags were messed up, so I had to use code tags.

EDIT Again: This is part of the CS (caster system) so I don't know if there is another way to do the ability.
 
Last edited:
Status
Not open for further replies.
Top