HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

Raise Dead point detection

01-21-2010, 01:22 PM#1
Neversleeping
I have a hero-version of a Raise Dead-like spell, but the editor does only allow two different unit types. I wish another, so I thought I'd trigger it. However, since you actually do not choose a point location to cast the spell, it seems that the "target point of ability being cast"-function does not work. Any other way to pinpoint exactly where the undeads are creeping up from the ground?
01-21-2010, 01:26 PM#2
grim001
Try using a trigger to notice when the order is issued. You should be able to get the coordinates of the issued order.
01-21-2010, 01:35 PM#3
Neversleeping
So I can get the coordinates of the issued order, but not the point of the ability being cast?

Okay, let's try this.
01-21-2010, 02:09 PM#4
Kino
Hmm since raise dead summons a unit, perhaps you can check position of summoned unit?
01-21-2010, 02:09 PM#5
DioD
summoned unit even

position of unit
01-21-2010, 02:53 PM#6
Neversleeping
So how do you suggest I'd do it? There's most likely already a dozen summoned units in the vicinity.
01-21-2010, 03:02 PM#7
Rising_Dusk
You check the Summoned Unit's unit raw id against the type raised by the Raise Dead ability. If it's the same, you know it was created by that Raise Dead. Then use GetUnitX and GetUnitY.
01-21-2010, 07:00 PM#8
Anitarf
Quote:
Originally Posted by Neversleeping
So how do you suggest I'd do it? There's most likely already a dozen summoned units in the vicinity.
Why would that matter if you use the summon event? Simply have your raised dead spell summon a single unit type and then when a unit of that type is summoned you can morph it to other unit types.
01-22-2010, 02:50 AM#9
Kirym
Instead of spawning a dozen units you may want to use a dummy to find the position and then use triggers to spawn them.
01-22-2010, 05:06 AM#10
Tom_Kazansky
if your skill is actually Raise Dead, it has Target unit of ability being cast (it's the corpse that's being used)

(well, using trigger, you can actually order a unit to cast Raise Dead on a specific corpse)
01-22-2010, 08:48 AM#11
Neversleeping
I didn't know that raise dead was a summon event. Thanks for that. And if the corpse is a target unit of the spell being cast, this should be no problem.

Thanks a bunch!