- Home /
Can you add scripts to trees and rocks?
I have made a game where if the player comes within a specific distance of a tree, rock, or other minable item that they use a pickaxe or other tool to get objects like wood and rocks.
My question is, Can you make a tree or rock and add the script you want to it and mass produce it throughout the terrain? I know of the terrains tree placement but there is no way that i know of to place scripts on each tree individually. I really just dont want to have to place every tree and rock one by one throughout the map.
Thank you in advance, Ian
As far as i know you cant add scripts to trees. Am i wrong?
Answer by fafase · Apr 20, 2014 at 08:06 PM
No, scripts are not considered with mass placement. To figure it out, I just created a script, attached to a tree and used that prefab for mass tree tool in terrain editor.
While pressing nothing happens, as a conclusion, scripts seems not to be considered.