obj
Tree
icon='tree.dmi'
icon_state="tree"
density=1
verb
Chop()
set src in oview(1)
for(var/obj/Tree in oview(1))
flick("chop",usr)
spawn(10)
icon='tree.dmi'
icon_state="chopped"
density=0
This is the code I made to chop down trees and turn them into stumps you can walk over. It works fine, however, if there are more than one tree in the players oview it seems to randomly select which tree to chop. I want it to chop the tree in the direction im facing. How would I go about doing that?: