• 🏆 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!
  • It's time for the first HD Modeling Contest of 2024. Join the theme discussion for Hive's HD Modeling Contest #6! Click here to post your idea!

Creating/respawning unit

Status
Not open for further replies.
Level 16
Joined
Jul 21, 2008
Messages
1,121
You will have to make it like this:
  • Ent Respawn
    • Events
      • Unit - A unit Dies
    • Conditions
      • (Unit-type of (Triggering unit)) Equal to <Dead Ent>
    • Actions
      • Set TempPoint = (Position of (Triggering unit))
      • Unit - Create 1 <Alive Ent> for (Owner of (Triggering unit)) at TempPoint facing Default building facing degrees
      • Custom script: call RemoveLocation(udg_TempPoint)
In tree tags i have played, "Ent Ash" is "Ward" (Classification) and Infernals/Ent's Units cannot attack wards.
You can also make "Anti-Attack" with triggers.

By the way, your triggers leak. Leaks "create" lag in your map. To learn about leaks and how to remove them, look here: http://www.hiveworkshop.com/forums/triggers-and-scripts-269/things-that-leak-35124/
 
Status
Not open for further replies.
Top