Dave312
Censored for your safe viewing
- Reaction score
- 269
I'm currently working on a map and seem to be having a little difficulty in getting this ability to work. What I have is a worker unit which can build, harvest trees etc. I want to add to this unit an ability where it can cut a tree down with one strike (trees on my map have max HP so they wont die from lumbering them).
My first attempt to create this ability was to base it on 'Eat Tree' and change the healing properties to zero. Nice and easy. The ability worked fine until I realized that there is a bug where the Eat Tree Ability is automatically activated when trying to harvest a tree. So instead of having trees that lasted forever, they would be cut down with one hit without using the ability.
My second attempt was to base it on the Channeling ability and use a simple trigger to kill the tree. I set the 'targets allowed' to 'tree' and set the 'target type' to 'unit target'. The problem with this is that the ability must target a unit, not a destructible. And because there is no 'destructible target' for the 'target type' property, I can't make the ability select a tree.
At the moment I've run out of good ideas to get this working so any help would be good, either for a solution to the problem for each of my attempts, or a new method to get this ability working.
Cheers
My first attempt to create this ability was to base it on 'Eat Tree' and change the healing properties to zero. Nice and easy. The ability worked fine until I realized that there is a bug where the Eat Tree Ability is automatically activated when trying to harvest a tree. So instead of having trees that lasted forever, they would be cut down with one hit without using the ability.
My second attempt was to base it on the Channeling ability and use a simple trigger to kill the tree. I set the 'targets allowed' to 'tree' and set the 'target type' to 'unit target'. The problem with this is that the ability must target a unit, not a destructible. And because there is no 'destructible target' for the 'target type' property, I can't make the ability select a tree.
At the moment I've run out of good ideas to get this working so any help would be good, either for a solution to the problem for each of my attempts, or a new method to get this ability working.
Cheers