• 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!
  • Read Evilhog's interview with Gregory Alper, the original composer of the music for WarCraft: Orcs & Humans 🔗Click here to read the full interview.

[JASS] Trying to rez a unit

Status
Not open for further replies.
Level 11
Joined
Mar 31, 2009
Messages
732
Heres what I've got for killing it:

JASS:
private function killUnit takes nothing returns nothing
        call KillUnit(GetEnumUnit())
    endfunction
The unit died, but the corpse seems to vanish quickly. Its a peasant, and it dies in shallow water.

Heres what I have for rezzing it:

JASS:
if (playersWorker[i] != null and GetUnitState(playersWorker[i], UNIT_STATE_LIFE) <= 0) then
                call ReviveHero(playersWorker[i], GetUnitX(playersWorker[i]), GetUnitY(playersWorker[i]), true)
            endif

I want it to rez the peasant and show that animation you see when your hero rezzes at an altar/tavern. The unit isn't rezzing at all though.
 
... you looked through the mpq's???? That's like emptying an entire bottle of RAID on just one ant.

Open Object Editor, go to the abilities tab, view "Resurrection" (as an example, depending on what effect you want to use to revive) and view the "target-art". It should be human//spells//resurrecttarget.mdl or something. Just copy that and put it in the code I gave you as "Human//Spells//ResurrectTarget.mdl" (make sure, whatever it is, that it is in "quotes")
 
Level 11
Joined
Mar 31, 2009
Messages
732
... you looked through the mpq's???? That's like emptying an entire bottle of RAID on just one ant.

Open Object Editor, go to the abilities tab, view "Resurrection" (as an example, depending on what effect you want to use to revive) and view the "target-art". It should be human//spells//resurrecttarget.mdl or something. Just copy that and put it in the code I gave you as "Human//Spells//ResurrectTarget.mdl" (make sure, whatever it is, that it is in "quotes")

Eh? I want the resurrection art that shows when a hero is rezzed at an altar/tavern, not the one used by pallys resurrection. I dunno what it would be called :|


"Abilities\\Spells\\Other\\Awaken\\Awaken.mdl"
Thats the one, thanks!
 
Status
Not open for further replies.
Top