I copied zeldarules' revive trigger, but everytime my unit revives, it doesn't revive my hero, it creates a new hero, Raynor, and replaces it with mine.
Hey! Glad you used my tutorial! I'm looking at the map atm, I'll let you know if I spot anything suspicious.
Update- I don't see anything wrong, nor do I see a problem when I test the map. It appears to be working as intended- you die, wait a bit, and re spawn.
The old fashioned way is to save all of the raynor's stats as variables and when the new raynor is created it sets the stats exactly. Another way is to save the unit itself into the system and reload it. I bet there's an easier way though and I haven't tried either methods.
I copied zeldarules' revive trigger, but everytime my unit revives, it doesn't revive my hero, it creates a new hero, Raynor, and replaces it with mine.
the most common error I have encountered in hero-revive systems that I've made is the unit's Death time. Make sure its not zero.
and yes, if all fails; you would want to do like what Yukaboy said, store your attributes in variables, and basically just reapply them to new unit.
Hey! Glad you used my tutorial! I'm looking at the map atm, I'll let you
know if I spot anything suspicious.
Update- I don't see anything wrong, nor do I see a problem when I test
the map. It appears to be working as intended- you die, wait a bit, and
re spawn.
Yeah, but the problem dude, is that it does not revive the "assault", it creates a Raynor hero.
Switched the attachment with a new version, please check it out.
Check the "Revive Type" of the unit, they changed something in the recent patches about revival. One of the heroes in my map (The Thor) revived as a normal Thor instead of the hero one because it's default revive type was set to the usual Thor
EDIT: I'd check the map myself, but I'm currently working on my own map and have extreme loading times using the terrain editor (which im using for my map at the moment)
With the last patch, Blizzard enabled the functionality of the Unit: Revive Type field. Whenever you revive your unit, it will be revived as the type specified in this field. Make sure, you selected the correct unit type here; resetting the field to default should automatically do this. When copying or duplicating a unit, it sometimes preserves the revive type of the old unit.
I copied zeldarules' revive trigger, but everytime my unit revives, it doesn't revive my hero, it creates a new hero, Raynor, and replaces it with mine.
Bumpz!
@Frozen_Shadow: Go
Hey! Glad you used my tutorial! I'm looking at the map atm, I'll let you know if I spot anything suspicious.
Update- I don't see anything wrong, nor do I see a problem when I test the map. It appears to be working as intended- you die, wait a bit, and re spawn.
The old fashioned way is to save all of the raynor's stats as variables and when the new raynor is created it sets the stats exactly. Another way is to save the unit itself into the system and reload it. I bet there's an easier way though and I haven't tried either methods.
the most common error I have encountered in hero-revive systems that I've made is the unit's Death time. Make sure its not zero.
and yes, if all fails; you would want to do like what Yukaboy said, store your attributes in variables, and basically just reapply them to new unit.
The problem is not the death time, the death time is -1 so it's stored permanently. Would you please check my map?
Yeah, but the problem dude, is that it does not revive the "assault", it creates a Raynor hero.
Switched the attachment with a new version, please check it out.
Check the "Revive Type" of the unit, they changed something in the recent patches about revival. One of the heroes in my map (The Thor) revived as a normal Thor instead of the hero one because it's default revive type was set to the usual Thor
EDIT: I'd check the map myself, but I'm currently working on my own map and have extreme loading times using the terrain editor (which im using for my map at the moment)
With the last patch, Blizzard enabled the functionality of the Unit: Revive Type field. Whenever you revive your unit, it will be revived as the type specified in this field. Make sure, you selected the correct unit type here; resetting the field to default should automatically do this. When copying or duplicating a unit, it sometimes preserves the revive type of the old unit.
Omg it works! Thank you so much! :D