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

Make trees durable

Status
Not open for further replies.
With your method the tree will die one day :)

Do something like this :
Event - Periodic check - every x seconds (0.5 should be okay)
Conditions - None
Actions - Set destructible life to 100%

And to be even more sure, put a high life to the tree so you can check only every 5s.

my idea is easier cuz he dont need the tree to last forever he want it to last twice as longer than it used to. Although Malhorne's idea of a trigger can be better. :)
 
Level 26
Joined
Mar 19, 2008
Messages
3,140
@Malhorne wrong. NaserKingArthas idea does make trees more durable. Yours, make them invincible instead. Whatmore, periodic destructable enumeration is some bad design, since it often happens that map has over 5k destructables.

Better solution would be to localy store given tree and with usage of timer, restore some of it's life.
 
Level 12
Joined
Feb 22, 2010
Messages
1,115
If it is not for a specific tree but all trees NaserKingArthas' solution is best.
 
Status
Not open for further replies.
Top