• 🏆 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!
  • 🏆 Hive's 6th HD Modeling Contest: Mechanical is now open! Design and model a mechanical creature, mechanized animal, a futuristic robotic being, or anything else your imagination can tinker with! 📅 Submissions close on June 30, 2024. Don't miss this opportunity to let your creativity shine! Enter now and show us your mechanical masterpiece! 🔗 Click here to enter!

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