There is a behavior called Valerian Hero Death Prevention which I'm sure you all are aware of. If a unit has this behavior the unit when it reaches it's death point will apply an "incapacitated" behavior to the unit preventing death. 4 models in particular have animations that trigger when the behavior "Incapacitated" They are: Raynor, Swann, Stetmen, and Tychus. IF, you put the "Hero death prevention" behavior on a different model (let's say Zeratul) when Zeratul reaches his death point no animations play he just remains in "standing" form.
Here is the question of the day: What do you need to change to allow a certain model to play (or be swapped in) for other units during this "incapacitated" behavior state. Here is an example I would like some help with. Let's say I have a hydralisk that has this hero death prevention behavior equipped, and when the "incapacitated" behavior is applied, I would like the hydralisk to burrow and then when the incapacitated behavior is off i would like him to unburrow.
Check the Actor events for the units that have the model for the effect. Most things like that are redirected via events in data to use separate models.
There is a behavior called Valerian Hero Death Prevention which I'm sure you all are aware of. If a unit has this behavior the unit when it reaches it's death point will apply an "incapacitated" behavior to the unit preventing death. 4 models in particular have animations that trigger when the behavior "Incapacitated" They are: Raynor, Swann, Stetmen, and Tychus. IF, you put the "Hero death prevention" behavior on a different model (let's say Zeratul) when Zeratul reaches his death point no animations play he just remains in "standing" form.
Here is the question of the day: What do you need to change to allow a certain model to play (or be swapped in) for other units during this "incapacitated" behavior state. Here is an example I would like some help with. Let's say I have a hydralisk that has this hero death prevention behavior equipped, and when the "incapacitated" behavior is applied, I would like the hydralisk to burrow and then when the incapacitated behavior is off i would like him to unburrow.
Any help would be greatly appreciated Thank you
Check the Actor events for the units that have the model for the effect. Most things like that are redirected via events in data to use separate models.
The actor events look like this:
Behavior.Incapacitated.On
AnimPlay Death Dead PlayForever
Behavior.Incapacitated.Off
AnimClear Death
So just sub whatever animation you want to play in there.