Dismiss Notice
60,000 passwords have been reset on July 8, 2019. If you cannot login, read this.

Help me with Destructible. (Tree)

Discussion in 'World Editor Help Zone' started by soulshot, Feb 10, 2016.

  1. soulshot

    soulshot

    Joined:
    Apr 22, 2013
    Messages:
    10
    Resources:
    0
    Resources:
    0
    So I can't seem to find any GOOD info or understandable information from google on how to make a tree "Harvest-able Forever and Destroy-able in a single hit" anyone got any ideas on how to do this? :confused:

    I don't know how to make them because I'm just a bit experienced world editor user. And I'm trying to learn.
     
  2. Rheiko

    Rheiko

    Joined:
    Aug 27, 2013
    Messages:
    2,926
    Resources:
    7
    Icons:
    2
    Spells:
    3
    Tutorials:
    2
    Resources:
    7
    If i got it correctly, trees can be destroyed when you harvest them because harvest itself causes damage to the tree. You can prevent them to be destroyed by changing the value inside the object editor "Data - Damage to tree " to 0 for the harvest ability. And you can just make the hit points of the tree to 1 so they can be destroy-able in a single hit.
     
  3. Legal_Ease

    Legal_Ease

    Joined:
    Feb 8, 2013
    Messages:
    1,453
    Resources:
    28
    Icons:
    11
    Packs:
    1
    Skins:
    2
    Maps:
    10
    Template:
    1
    Tutorials:
    3
    Resources:
    28
    The only GUI destructible event is 'A Destructible dies.' So we can revive it instantly and it will look like it never died, but how to we make it know when to die when it is attacked?

    For this we can check the killing unit's current order. If it is (harvest) or (return lumber) then we know it was killed while being harvested. If it is anything else, then we know it was attacked.

    Are you still with me?
     
  4. soulshot

    soulshot

    Joined:
    Apr 22, 2013
    Messages:
    10
    Resources:
    0
    Resources:
    0
    Hey, I did the thing u said but the limit for damage to tree is "1" so I can't seem to change it to "0".
     
  5. WereElf

    WereElf

    Joined:
    Jan 2, 2016
    Messages:
    962
    Resources:
    1
    Spells:
    1
    Resources:
    1
    Press shift and then double-click the field. It should allow you to write 0.
     
  6. soulshot

    soulshot

    Joined:
    Apr 22, 2013
    Messages:
    10
    Resources:
    0
    Resources:
    0
    why does it when i set it to 0 damage it doesn't take back lumber.
     
  7. WereElf

    WereElf

    Joined:
    Jan 2, 2016
    Messages:
    962
    Resources:
    1
    Spells:
    1
    Resources:
    1
    I don't know, I haven't played around with that. Try Legal_Ease's idea.