Regrow Trees?

hamiltonbb2

Cool Member
Reaction score
0
I've seen a couple maps that have a tree regrowth feature.

I tried a few things but I mucked it up everytime. . . I'm trying to regrow the tree where it died and to actually give the appearance of regrowing.
Does anyone know how to get this done?
 

AceHart

Your Friendly Neighborhood Admin
Reaction score
1,495
Code:
Trees Regrow
    Events
    Conditions
    Actions
        Wait 20.00 game-time seconds
        Destructible - Resurrect (Dying destructible) with (Max life of (Dying destructible)) life and Show birth animation
Code:
Trees Init
    Events
        Time - Elapsed game time is 5.00 seconds
    Conditions
    Actions
        Destructible - Pick every destructible in (Playable map area) and do (Actions)
            Loop - Actions
                If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                    If - Conditions
                        Or - Any (Conditions) are true
                            Conditions
                                (Destructible-type of (Picked destructible)) Equal to Ruins Tree Wall
                                (Destructible-type of (Picked destructible)) Equal to Ruins Canopy Tree
                    Then - Actions
                        Trigger - Add to Trees Regrow <gen> the event (Destructible - (Picked destructible) dies)
                    Else - Actions

Change the tree types to match those in your map.


> I tried a few things

Tried this forum's "search" feature yet?
 
General chit-chat
Help Users
  • No one is chatting at the moment.

      The Helper Discord

      Members online

      No members online now.

      Affiliates

      Hive Workshop NUON Dome World Editor Tutorials

      Network Sponsors

      Apex Steel Pipe - Buys and sells Steel Pipe.
      Top