Hey guys, I can't figure out what the heck is going wrong in this... This problem is only happening for one hero unit (A duplicated Swarm queen). When my hero revives, it changes to a normal Swarm Queen, instead of my hero. I'm using the death timer method of revival. Also don't know if this will help, but previously the burrow ability would mess up my hero as well by changing the unit type to a regular swarm queen. I since just took out its burrow ability completely. My revive trigger looks like this:
HeroRevivalEventsUnit-AnyUnitdiesLocalVariablesHero=(Triggeringunit)<Unit>Timer=(Newtimer)<Timer>TimerLength=60<Integer>TimerWindow=NoTimerWindow<TimerWindow>Conditions((Unittypeof(Triggeringunit))hasHeroicattribute)==TrueOrConditions(Triggeringunit)==PlayerHero[1](Triggeringunit)==PlayerHero[2](Triggeringunit)==PlayerHero[3]ActionsUI-Display"Message"for(Playergroup((Triggeringplayer)))toSubtitleareaVariable-SetTimerLength=DifficultySettings[(Integer(CurrentDifficulty))].HeroRespawnTimeTimer-StartTimerasaOneShottimerthatwillexpireinTimerLengthGameTimesecondsTimer-Createatimerwindowfor(Laststartedtimer),withthetitle"Time til Respawn",usingRemainingtime(initiallyVisible)Variable-SetTimerWindow=(Lastcreatedtimerwindow)General-Wait6.0GameTimesecondsUnit-MoveHeroinstantlytoHeroRespawnPoint(NoBlend)General-WaitforTimertohave0.0secondsRemainingUI-Display(Text"Message"withcolor(Color(Teal)))for(Playergroup((Triggeringplayer)))toSubtitleareaPing-PingtheminimapatHeroRespawnPointfor(Playergroup((Triggeringplayer)))over8.0seconds,usingthecolor(Color(Teal))Timer-DestroyTimerWindowUnit-ReviveHeroUnit-SetHeroLife(Percent)to100.0Unit-SetHeroShields(Percent)to100.0Unit-SetHeroEnergy(Percent)to100.0
I'm thinking this has got to be something data related, but I have no idea what it is. It can't be actors right, as don't those only affect visuals/sounds? I can't really see any connection between them. They do have some of the same abilities, but I don't see how that could matter. I'm completely stumped on this one.
Hey guys, I can't figure out what the heck is going wrong in this... This problem is only happening for one hero unit (A duplicated Swarm queen). When my hero revives, it changes to a normal Swarm Queen, instead of my hero. I'm using the death timer method of revival. Also don't know if this will help, but previously the burrow ability would mess up my hero as well by changing the unit type to a regular swarm queen. I since just took out its burrow ability completely. My revive trigger looks like this:
I'm thinking this has got to be something data related, but I have no idea what it is. It can't be actors right, as don't those only affect visuals/sounds? I can't really see any connection between them. They do have some of the same abilities, but I don't see how that could matter. I'm completely stumped on this one.
i give it a try. every unit has a field that specifies the unit type on revive. change this to your new unit type.
Open the data editor. Go to your unit in the units tab.
There's an entry called "Unit: Revive Type".
Right-click -> Reset to Parent Value -> [Core.SC2Mod]
Thanks! Not sure how I missed that >.<