• 🏆 Texturing Contest #33 is OPEN! Contestants must re-texture a SD unit model found in-game (Warcraft 3 Classic), recreating the unit into a peaceful NPC version. 🔗Click here to enter!

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