• 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.

Respawn at beginning

Status
Not open for further replies.
Level 19
Joined
Aug 8, 2007
Messages
2,765
Hey does anybody know (besides pharoah_) how to make a unit, when he dies, respawn where he started? not where he died.
 
Level 20
Joined
Feb 24, 2009
Messages
2,999
  • 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:
 
Level 3
Joined
Mar 9, 2010
Messages
38
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.
Top