I tried creating a hero reviving type trigger. The hero has the Campaign Valerian hero death preventation behavior so when it takes fatal damage it gets the
incapacitated behavior which makes it invulnerable..
I'm trying to detect if the unit has that behavior and it doesn't work. I tried it with the death preventation behavior and it works, so im guessing it's a bug or something.
You don't need any behaviors to create a revive system.
To make a unit revive-able, open then unit in the data editor and set Death Time to -1. This makes it so a unit remains in the game even while it is dead, and allows you to use the inbuilt Revive Unit action on it. You'll want to save the unit your going to revive to a variable for simplicity I imagine.
If you're using a unit you made yourself, you'll also want to check Revive Type in the data editor and make sure it is set to your custom unit.
I tried creating a hero reviving type trigger. The hero has the Campaign Valerian hero death preventation behavior so when it takes fatal damage it gets the incapacitated behavior which makes it invulnerable..
I'm trying to detect if the unit has that behavior and it doesn't work. I tried it with the death preventation behavior and it works, so im guessing it's a bug or something.
If anyone knows the solution please help.
You don't need any behaviors to create a revive system.
To make a unit revive-able, open then unit in the data editor and set Death Time to -1. This makes it so a unit remains in the game even while it is dead, and allows you to use the inbuilt Revive Unit action on it. You'll want to save the unit your going to revive to a variable for simplicity I imagine.
If you're using a unit you made yourself, you'll also want to check Revive Type in the data editor and make sure it is set to your custom unit.
@ZMilla93: Go
I already solved it after i posted this but thanks for the reply.
And i might try what you said, if the unit keeps it's levels.
It preserves hero levels, learned abilities, and lets you run actions while the unit is dead like moving it around the map.
@ZMilla93: Go
Okay thanks for the help, now i just need to figure out how to solve the thread.