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?
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?
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!
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!
Are you using the combat spawners to spawn the trees?
---------------------------------------
Personal Twitter: https://twitter.com/AMO_Crate
I make RFI! https://twitter.com/NootboxGames
If you're enjoying my products, updates and support, please consider supporting me on patreon.com!
If you're enjoying my products, updates and support, please consider supporting me on patreon.com!