HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

Regrowing trees

07-24-2004, 07:03 PM#1
mosarani
I have a map in which trees are destroyed regularly. I have a hero that has 2 abilities which can create trees. Right now the default trees are winter and snowy trees, while the trees created by the hero are lordaeron summer. How can I make only the default trees respawn?
07-24-2004, 08:50 PM#2
GaDDeN
Note: The code is written freehand, its not 100% correct words.

Code:
EVent: A destructable dies
Actions: if type of (dying destructable) is equal to winter or snowy (u get me:P)
then wait for condition (condition: Rect with size 200x200 located at position of (dying desctructable) contains 0 units) then create 1 (unit type of (dying destructable)) at position of (dying desctructable)

Im totally sure it works, ive done it a few times my self =)
07-24-2004, 11:41 PM#3
OneWinged4ngel
WEU has a regrowing trees trigger :D