I think there's a field on the morph ability where you can apply effects upon morph completion. Apply a suicide effect or an "issue order"->use detonate ability.
Edit: check the Infestor's eggs, they use an effect to spawn the infested marines.
If the "morph to" unit doesn't exist already, just scrap the morph, use an Effect-Instant ability and have that trigger the explosion+suicide. You can use actor events to make the unit look like a cocoon or something while it's using the ability.
They all have an attached Model type actor that is created when the Morph ability starts and it destroyed when it finishes while playing the various animations inbetween a bit like construction models for the Build ability.
For example, a zergling morphs into a baneling. As soon as the morph is complete, the baneling explodes and deal splash damage.
It wont work properly for me. :S
Any ideas?
I think there's a field on the morph ability where you can apply effects upon morph completion. Apply a suicide effect or an "issue order"->use detonate ability.
Edit: check the Infestor's eggs, they use an effect to spawn the infested marines.
If the "morph to" unit doesn't exist already, just scrap the morph, use an Effect-Instant ability and have that trigger the explosion+suicide. You can use actor events to make the unit look like a cocoon or something while it's using the ability.
They all have an attached Model type actor that is created when the Morph ability starts and it destroyed when it finishes while playing the various animations inbetween a bit like construction models for the Build ability.
Contribute to the wiki (Wiki button at top of page) Considered easy altering of the unit textures?
https://www.sc2mapster.com/forums/resources/tutorials/179654-data-actor-events-message-texture-select-by-id
https://media.forgecdn.net/attachments/187/40/Screenshot2011-04-17_09_16_21.jpg
If your trying to do it with the baneling, then no problem, just simply Change the ability to auto destruct when the unit is built.
I added a Issue order effect in the info+ field of the ability Morhp Zergling to baneling. Now it explodes when complete.