HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

Some Problems of Unit...

06-29-2008, 01:02 AM#1
cga_valen
Is there any good idea to revive a NON-HERO unit?
i don`t wanna remove the dying unit and create a new one to instead it
i just wanna REVIVE it.

Trigger:
Hero - Instantly revive (Dying unit) at (Center of Force2 StartLocation <gen>), Show revival graphics
is not work on a non-hero unit.
does anyone can help me?

sorry for my English.....:)
06-29-2008, 09:04 AM#2
Gorman
use the event "units health goes below 0.405" (0.405 is the amount the editor checks for dead stuff), then set the units life up to the desired amount, that should prevent it from dying.

Youd have to use another trigger to add all units on the map to that trigger tho, or the ones that need to be revived.
06-29-2008, 09:16 AM#3
Typek
Trigger:
Reviving
Collapse Events
Unit - A unit Decays
Collapse Conditions
(Unit-type of (Decaying unit)) Not equal to Dummy Unit (Revive)
Collapse Actions
Unit - Move (Decaying unit) instantly to (Center of Center of Force2 StartLocation <gen>)
Unit - Create 1 Dummy Unit (Revive) for (Owner of (Decaying unit)) at (Position of (Decaying unit)) facing Default building facing degrees
Unit - Order (Last created unit) to Human Paladin - Resurrection
Unit - Add a 0.50 second Generic expiration timer to (Last created unit)

Dummy Unit (Revive) has a spell based on ressurection with small area of effect and only 1 target. This is not the best solution but you can use it same way as the trriger you pasted. And of course add player-type conditions.
06-29-2008, 12:56 PM#4
cga_valen
hmmm....i see...
thanks ..