I want to be able to build trees in my map, but not the literal destructible tree but a unit that simply looks like a tree and is targeted in every way like a tree, but selectable and able to be owned by a team.
I figured it would be as simple as setting it's classification to Tree and target type to Tree, but for some reason, Peasants and Siege Weapons (Demolishers, etc) can't target it, even though they have tree targetting attacks. How do I make my building targetable by only the usual tree destroying units? Right now with it targeted and classified as tree, when you click on it to target it, the click goes right through as if I was clicking the ground, but on an actual tree it makes the tree flash a little and then the unit begins attacking it.
EDIT: Idea: Make the building completely untargettable by attacks, and when it's built, add a pathable tree destructible over it. Then when that tree takes damage, pick the nearest unit that is like 0 units away and damage it an equal amount. I'll try this for now as a hack around. My only worry about this is that the placed tree will be harvestable for lumber, I'd like to avoid that.
EDIT EDIT: I'm having A LOT of trouble making the model even appear so much as make a custom destructible.
MORE EDIT: I got the modeling working fine, but anything that is targeted as Tree you can harvest from. Is there any way to make it so peasants only damage it and don't actually gather wood off of my fake tree?
I figured it would be as simple as setting it's classification to Tree and target type to Tree, but for some reason, Peasants and Siege Weapons (Demolishers, etc) can't target it, even though they have tree targetting attacks. How do I make my building targetable by only the usual tree destroying units? Right now with it targeted and classified as tree, when you click on it to target it, the click goes right through as if I was clicking the ground, but on an actual tree it makes the tree flash a little and then the unit begins attacking it.
EDIT: Idea: Make the building completely untargettable by attacks, and when it's built, add a pathable tree destructible over it. Then when that tree takes damage, pick the nearest unit that is like 0 units away and damage it an equal amount. I'll try this for now as a hack around. My only worry about this is that the placed tree will be harvestable for lumber, I'd like to avoid that.
EDIT EDIT: I'm having A LOT of trouble making the model even appear so much as make a custom destructible.
MORE EDIT: I got the modeling working fine, but anything that is targeted as Tree you can harvest from. Is there any way to make it so peasants only damage it and don't actually gather wood off of my fake tree?
Last edited: