Listen to a special audio message from Bill Roper to the Hive Workshop community (Bill is a former Vice President of Blizzard Entertainment, Producer, Designer, Musician, Voice Actor) 🔗Click here to hear his message!
does anyone here know any creep revival systems(one that can spawn the dying unit to its starting location and also with its facing direction in the starting location) +rep
Well I made a simple system that revives units after 30 seconds of dieing. One problem I haven't fixed yet though is that units revive where they died. Ideally you would want them to revive where their "creep camp" is. Hmm...
Unit Revival
Events
Unit - A unit Dies
Conditions
Actions
Set Revival_Index = (Revival_Index + 1)
Set Revival_Unit[Revival_Index] = (Triggering unit)
Set Revival_Point[Revival_Index] = (Position of Revival_Unit[Revival_Index])
Set Revival_Owner[Revival_Index] = (Owner of Revival_Unit[Revival_Index])
Set Revival_Counter[Revival_Index] = 0.00
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
Revival_Index Equal to 1
Then - Actions
Trigger - Turn on Unit Revival Loop <gen>
Else - Actions
Unit Revival Loop
Events
Time - Every 1.00 seconds of game time
Conditions
Actions
For each (Integer Revival_LoopInteger) from 1 to Revival_Index, do (Actions)
Loop - Actions
Set Revival_Counter[Revival_LoopInteger] = (Revival_Counter[Revival_LoopInteger] + 1.00)
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
Revival_Counter[Revival_LoopInteger] Greater than or equal to 30.00
Then - Actions
Unit - Create 1 (Unit-type of Revival_Unit[Revival_LoopInteger]) for Revival_Owner[Revival_LoopInteger] at Revival_Point[Revival_LoopInteger] facing Default building facing degrees
Ok I figured it out. I indexed unit's positions and facing angles upon map initialization. When units respawn, they'll respawn at their starting position (not where they died). New system uses Bribe's unit indexing system.
For demonstration, I changed the respawn timer to 5 seconds.
Not sure what you mean. This should work for all units. You can kill as many as you want at a time and they'll all independently respawn after 5 seconds (or whatever you set it to).
Edit: Download the map I attached and see how the system works.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.