Is there a way to create a behavior that triggers a morph command upon death? I want my unit to be replaced with another unit when it dies. And that unit will have the same behavior with call a different morph ability when it dies, and so on. I've tried a few things but nothing seemed to work. My current plan is to call an effect with a behavior. The effect would cast a morph ability for the unit? Any help would be appreciated, thanks.
I would use a Unit Dies event...
Make a Local Variable and have it set to Unit > Triggering Unit
Then under the actions I would use Create Units at Variable facing 270 degrees...
I dont know much about the trigger editor but thats what I would go about doing...
Actually I realized this is already in the game. Broodlings are spawned when you destroy a Zerg structure. I looked into it more and found that you can have the Behavior call an Effect under the Combat tab. And there is a "Create Unit" effect type I completely missed. I'm not one to just copy and paste abilities and stuff, I'd rather get it set up and understand it on my own, so I'm gonna rebuild it and see if it works. Thanks for the help, though.
Rollback Post to RevisionRollBack
To post a comment, please login or register a new account.
Is there a way to create a behavior that triggers a morph command upon death? I want my unit to be replaced with another unit when it dies. And that unit will have the same behavior with call a different morph ability when it dies, and so on. I've tried a few things but nothing seemed to work. My current plan is to call an effect with a behavior. The effect would cast a morph ability for the unit? Any help would be appreciated, thanks.
I would use a Unit Dies event... Make a Local Variable and have it set to Unit > Triggering Unit Then under the actions I would use Create Units at Variable facing 270 degrees...
I dont know much about the trigger editor but thats what I would go about doing...
Actually I realized this is already in the game. Broodlings are spawned when you destroy a Zerg structure. I looked into it more and found that you can have the Behavior call an Effect under the Combat tab. And there is a "Create Unit" effect type I completely missed. I'm not one to just copy and paste abilities and stuff, I'd rather get it set up and understand it on my own, so I'm gonna rebuild it and see if it works. Thanks for the help, though.