Hey everyone, I just joined the forums and I was wondering how one would do this.
In a nutshell, I want to make a map where all units join a unit group once they die.
Every 60 seconds they would be revived.
Is there any way I can do this? Right now nothing happens for me.
every unit has a death time. it's set to 0 by default meaning the unit will be "deleted" on death. if you set it to -1 you can revive it without problems. you can treat it as any unit now, even add to unit groups.
on death start a timer inside the actor. when the timer runs out you have to send a actor message to the damage actors to destroy themselves.
or go to the damage actors and add a timer on creation. after timer runs out it destroys itself.
both things should work
if you have a lot of units create an actor macro for the first solution.
@FunkyUserName: Go
Is correct however it should be noted that if the game has a lot of unit it can cause performance issues.
a work around could be to set the death time to 3 seconds, revive the unit on death, add it to bank, and then destroy the unit. then using the bank to revive units into the future. you can even sort the units into groups via bank and call individuals if needed. with little performance issues.
Rollback Post to RevisionRollBack
To post a comment, please login or register a new account.
Hey everyone, I just joined the forums and I was wondering how one would do this. In a nutshell, I want to make a map where all units join a unit group once they die. Every 60 seconds they would be revived. Is there any way I can do this? Right now nothing happens for me.
If this is possible, I imagine you would need to edit the data of each unit type, and give them longer death times.
@SomeRandomMapMaker: Go
what have you done so far? death time of -1 is needed for sure.
@Trieva: Go
Is there a way I can do this entirely through the triggers? Sorry, I'm really new to the SC2 Editor.
Well, you would have to revive them immediately as they die and then hide them through actions like hide unit. Then after the 60 seconds, unhide them.
@Trieva: Go
what's the problem with death time = -1 and just add them to a unit group as a normal unit?
@Trieva: Go
every unit has a death time. it's set to 0 by default meaning the unit will be "deleted" on death. if you set it to -1 you can revive it without problems. you can treat it as any unit now, even add to unit groups.
@FunkyUserName: Go
The only problem with that is that they leave their damage actors when they die, Terran : Fire, Protoss : Lightning, Zerg : Blood Spurts
@SomeRandomMapMaker: Go
on death start a timer inside the actor. when the timer runs out you have to send a actor message to the damage actors to destroy themselves.
or go to the damage actors and add a timer on creation. after timer runs out it destroys itself.
both things should work
if you have a lot of units create an actor macro for the first solution.
@FunkyUserName: Go Is correct however it should be noted that if the game has a lot of unit it can cause performance issues.
a work around could be to set the death time to 3 seconds, revive the unit on death, add it to bank, and then destroy the unit. then using the bank to revive units into the future. you can even sort the units into groups via bank and call individuals if needed. with little performance issues.