• Check out the results of the Techtree Contest #19!
  • 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.
  • Create a void inspired texture for Warcraft 3 and enter Hive's 34th Texturing Contest: Void! Click here to enter!
  • The Hive's 22nd Icon Contest: Creep Abilities is now concluded, time to vote for your favourite set of icons! Click here to vote!

Respawn at beginning

Status
Not open for further replies.
Level 19
Joined
Aug 8, 2007
Messages
2,763
Hey does anybody know (besides pharoah_) how to make a unit, when he dies, respawn where he started? not where he died.
 
  • Melee Initialization
    • Events
      • Unit - A unit enters (Entire map)
    • Conditions
    • Actions
      • Set UnitStartLoc = (Region centered at (Position of (Triggering unit)) with size (10.00, 10.00))
and then...

  • Melee Initialization
    • Events
      • Unit - A unit Dies
    • Conditions
    • Actions
      • Unit - Create 1 (Unit-type of (Triggering unit)) for (Owner of (Triggering unit)) at (Center of UnitStartLoc) facing (Center of UnitStartLoc)
      • Set UnitStartLoc = (Region centered at (Position of (Triggering unit)) with size (10.00, 10.00))

These aren't leak-free or anything and i'm sure you can edit them to your exact requirements, e.g. revive a select hero :cute:
 
i can help you
  • Event units dies
  • Condition unit is hero
  • Respawn dying unit at start location
Note im not good at posting but i got it and it respawns my hero everytime he dies
 
Status
Not open for further replies.
Back
Top