HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

Reviving Ordinary Units?

08-29-2002, 01:34 AM#1
Guest
Is there a way to revive dead ordinary units? I need to be able to use the exact unit after it has died for many of my triggers. Please help!
08-29-2002, 02:00 AM#2
wacko
you could actually use the hero instanly revive action and just morph it to revive units
08-29-2002, 02:12 AM#3
Guest
I tried that, but it didn't seem to work for me. Is there like a set time where you can't revive them until the time is up? I mean like 3 seconds or so for the death animation to finish? Also, if i use that trigger, will i be able to revive mechanical units?
08-29-2002, 02:33 AM#4
wacko
well you have have it wait using the wait action before it preforms the next action.
08-29-2002, 02:53 AM#5
Guest
I just tried putting a wait of 6 seconds on it and it didn't work. Have you done this before or are you just coming up with ideas? I'm just curious. I hope I don't sound angry or anything.
08-29-2002, 02:58 AM#6
wacko
I have used all the triggers i have mentioned so far. I have revived units and it should wait. The best way to see how it work is look in the warchasers map and it will show you how to revive crap etc...
08-29-2002, 03:06 AM#7
Guest
Why does it have to be the exact unit? Regular units do not gain experience or carry items or anything that makes one different from another... Unless I'm forgetting something.

AV
08-29-2002, 03:08 AM#8
wacko
well you could do it this way, put the units in a unit group, then give that group a variable, then use the hero instaly revive action and revive dying unit from that group.
08-29-2002, 03:19 AM#9
Guest
Thx for the help man...but I still cannot get my units to revive. Do you know how long i have to put the wait? Would I be able to revive mechanical units also? Thx for the help again. Oh yea, I couldn't find the hero - revive instantly trigger in that warchasers map.
08-29-2002, 03:23 AM#10
Guest
aurval, i need it to be the exact unit because I am putting the units through a teleport-type trigger and I have the units go to certain places going by what unit it is. The exact situation is like this.... When the unit dies in the game, I want it to come alive again for a split second and move to the teleport and go back to it's original spot (where it was when the map started). I still need help with it though, i'm still working on it. thx for the ideas
08-29-2002, 04:53 AM#11
Guest
So then why not just create another unit of the same type and teleport it to the location?

Event:
Unit Dies

Create Unit of type (Type of Dying Unit).
Order last created unit to move to Teleport Region.

You might also need to use a variable to make the trigger reusable (if you use a specific unit in the event, the trigger is useless once that unit dies). At map initialization, set a variable equal to the specific unit in question. Then when that unit dies, create a unit of the same type and set the variable equal to Last Created Unit. For your event you'll have to use Unit Owned By Player # dies, and then use condition Dying Unit equal to <unit variable>.

You dig? :)

AV
08-29-2002, 05:05 AM#12
wacko
that or just make it a group and you could have a unit from that group be created thus it being reusable and not have to create a variable for each unit.
08-29-2002, 06:43 AM#13
Guest
Ok, i think i understand. I'll try the group way first and then the unit variable way. Thx for the help guys!:)