Hi, Im making an RPG map that includes items. Im trying to make it so when a hero dies, it plays the death animation, waits X amount of time then revives the hero but it still has the items and the same level with the learned abilities.
Use the "Incapacitated" behavior from the "hero" mission in the WoL campaign. You have to add the Liberty Campaign dependency to be able to see it. Use that, play death animation on unit, and hide the unit until it should be revived. The behavior simply suppresses any kind of player control, and the unit appears dead, but in fact it is still alive and thus it keeps all items, stats, and even buffs, if you don't want the unit to lose all these.
Hi, Im making an RPG map that includes items. Im trying to make it so when a hero dies, it plays the death animation, waits X amount of time then revives the hero but it still has the items and the same level with the learned abilities.
You could try the UnitRevive - function :p
@Cybrok: Go
Use the "Incapacitated" behavior from the "hero" mission in the WoL campaign. You have to add the Liberty Campaign dependency to be able to see it. Use that, play death animation on unit, and hide the unit until it should be revived. The behavior simply suppresses any kind of player control, and the unit appears dead, but in fact it is still alive and thus it keeps all items, stats, and even buffs, if you don't want the unit to lose all these.