edited June 2014 in ORK Support
I have an object (tree) that is parented to the terrain, I set up the trees as combatants so that I can use weapons on them. When the tree dies though, It destroys the terrain as well. How can I stop this from happening?
Post edited by gamingislove on
  • edited June 2014
    Is there a reason why the trees are parented to the terrain, except for organizational purposes? I would probably keep them separate if you're going to use the trees as combatants.

    Are you using the combat spawners to spawn the trees?
    Post edited by Kirb on
    Tactics RPG Grid Battle System for ORK
    ---------------------------------------
    Personal Twitter: https://twitter.com/AMO_Crate
    I make RFI! https://twitter.com/NootboxGames
  • the terrain generator childs them to the chunk of terrain they are located on so that when the player is far away from the chunk it can be disabled to save memory. otherwise I have no way of keeping up with which trees need to have their renderers disabled.
  • If the trees are the combatant object, I don't see why they should destroy their parent object as well ... but you can simply use the Mount Object step to remove the tree's parent in its death event :)
    Please consider rating/reviewing my products on the Asset Store (hopefully positively), as that helps tremendously with getting found.
    If you're enjoying my products, updates and support, please consider supporting me on patreon.com!
  • yes! that solved it. It seems, Gamingislove, that you have thought of everything
  • At least I tried to think of everything :)
    Please consider rating/reviewing my products on the Asset Store (hopefully positively), as that helps tremendously with getting found.
    If you're enjoying my products, updates and support, please consider supporting me on patreon.com!
Sign In or Register to comment.