• 🏆 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!

regrow trees ability?!?

Status
Not open for further replies.
Level 4
Joined
Feb 19, 2011
Messages
53
hi, can some1 of u show me how to make an abilitythat regrows trees?!?
i tried this :

a unit starts to cast an ability

ability beeing casted = regrow trees

destructible - Resurrect (Target destructible of ability being cast) with (Max life of Sommerbaumwand 2275 <gen>) life and Zeigen birth animation
 
Level 4
Joined
Feb 19, 2011
Messages
53
i think you all may know the game "tree tag" ...i want an grow ability like in this game
 
Level 33
Joined
Mar 27, 2008
Messages
8,035
  • Cast
    • Events
      • Unit - A unit Starts the effect of an ability
    • Conditions
      • (Ability being cast) Equal to Regrow Trees
    • Actions
      • Set TargetLoc = (Target point of ability being cast)
      • Destructible - Pick every destructible within 600.00 of TargetLoc and do (Actions)
        • Loop - Actions
          • Destructible - Resurrect (Picked destructible) with (Max life of (Picked destructible)) life and Show birth animation
      • Custom script: call RemoveLocation(udg_TargetLoc)
 
Level 4
Joined
Feb 19, 2011
Messages
53
  • Regrow Trees Spell
    • Ereignisse
      • Einheit - A unit Beginnt, eine Fähigkeit zu wirken
    • Bedingungen
      • (Ability being cast) Gleich Regrow Trees
    • Aktionen
      • Set TargetLoc = (Target point of ability being cast)
      • Zerstörbar - Pick every destructible within 600.00 of TargetLoc and do (Zerstörbar - Resurrect (Picked destructible) with (Max life of (Picked destructible)) life and Zeigen birth animation)
now it works :)
 
Status
Not open for further replies.
Top