- Home /
Woodcutting Question
I can easily make a woodcutting script however, my question is how would I attach my script to my trees that was terrain painted in? The game rust does this and I don't understand how. I have messed around with it alot and got nothing so far. Any help would be great!
Comment
Best Answer
Answer by getyour411 · Feb 13, 2014 at 11:00 PM
The short answer is, you can't have scripts on terrain painted trees. Two options
1) place colliders (by hand) around a subset of trees and attach 'choppy' script to those. Maybe add a particle effect when they are 'mature' and ready to be chopped, then track lastChopped and eventually bring the particle effect back.
2) get at trees via the terrainData matrix.
Your answer
![](https://koobas.hobune.stream/wayback/20220613133431im_/https://answers.unity.com/themes/thub/images/avi.jpg)