Instead of making the corpse morph or reviving the Infested Civilian, just kill the corpse and create a new infested civilian at its position. You can do this in the Effects field in the Units tab for the corpse. Just make a Create Unit Effect that triggers on corpse death. To kill the corpse just give it an expiring behavior that kills it when it expires.
If you still want the "progressing" bar on the unit just make the behavior show the duration bar.
Give the infested civilian a behavior - buff that has a damage response to fatal damage (death). Then, give it a handle effect in the damage response fields that creates the unit (cocoon).
The cocoon unit will have another behavior which has a duration (whatever you want) and another effect in the expiration field, this effect will create the Infested Civilian when the behavior on the cocoon behavior expires.
Rollback Post to RevisionRollBack
To post a comment, please login or register a new account.
Instead of making the corpse morph or reviving the Infested Civilian, just kill the corpse and create a new infested civilian at its position. You can do this in the Effects field in the Units tab for the corpse. Just make a Create Unit Effect that triggers on corpse death. To kill the corpse just give it an expiring behavior that kills it when it expires.
If you still want the "progressing" bar on the unit just make the behavior show the duration bar.
Give the infested civilian a behavior - buff that has a damage response to fatal damage (death). Then, give it a handle effect in the damage response fields that creates the unit (cocoon).
The cocoon unit will have another behavior which has a duration (whatever you want) and another effect in the expiration field, this effect will create the Infested Civilian when the behavior on the cocoon behavior expires.